ai_Mobile_Detect D

Total Complexity 172
Dependencies 1
Dependents 0
Total lines 1,467
Lines of code 341
Logical lines of code 160
Comment lines 647
Methods 36
Properties 15

Methods 36

Method Rating Maintainability Complexity Lines of code
mobileGrade()
D
31 78 56
version()
A
53 8 21
isMobile()
S
55 7 20
checkHttpHeadersForMobile()
S
57 7 17
setUserAgent()
S
55 6 20
isTablet()
S
58 6 15
setCfHeaders()
S
58 5 14
setHttpHeaders()
S
61 5 12
getHttpHeader()
S
60 4 13
matchUAAgainstKey()
S
61 4 13
matchDetectionRulesAgainstUA()
S
63 4 11
match()
S
65 4 8
setDetectionType()
S
66 4 9
is()
S
65 3 10
getMobileDetectionRulesExtended()
S
63 2 13
getMobileDetectionRules()
S
64 2 12
prepareVersionNo()
S
65 2 8
__call()
S
66 2 8
getRules()
S
70 2 7
getProperties()
S
80 1 3
getOperatingSystems()
S
80 1 3
__construct()
S
77 1 4
getUtilities()
S
80 1 3
getScriptVersion()
S
80 1 3
getUserAgents()
S
80 1 3
getTabletDevices()
S
80 1 3
getPhoneDevices()
S
80 1 3
getMatchesArray()
S
82 1 3
getMatchingRegex()
S
82 1 3
getUserAgent()
S
82 1 3
prepareUserAgent()
S
73 1 5
getCfHeaders()
S
82 1 3
getUaHttpHeaders()
S
81 1 3
getMobileHeaders()
S
81 1 3
getHttpHeaders()
S
82 1 3
getBrowsers()
S
80 1 3