Mobile_Detect D

Total Complexity 174
Dependencies 1
Dependents 1
Total lines 1,476
Lines of code 347
Logical lines of code 164
Comment lines 646
Methods 36
Properties 15

Methods 36

Method Rating Maintainability Complexity Lines of code
mobileGrade()
D
31 78 56
version()
A
51 9 24
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
match()
S
61 5 11
getHttpHeader()
S
60 4 13
matchUAAgainstKey()
S
61 4 13
matchDetectionRulesAgainstUA()
S
63 4 11
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