1 | <?php |
||
18 | class UserAgentHelper |
||
|
|||
19 | { |
||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private static $_cache; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * This class should not be instantiated. |
||
28 | */ |
||
29 | private function __construct() |
||
32 | |||
33 | /** |
||
34 | * Check whether user agent is a Google Page Speed Insights. |
||
35 | * |
||
36 | * @see https://stackoverflow.com/questions/29162881 |
||
37 | * |
||
38 | * @param bool $useCache |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | public static function isGooglePageSpeed($useCache = true) |
||
51 | } |
||
52 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString
.