| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public static function isGooglePageSpeed($useCache = true) |
||
| 43 | { |
||
| 44 | if (null === self::$_cache || false === $useCache) { |
||
| 45 | $userAgent = Yii::$app->getRequest()->getUserAgent(); |
||
| 46 | self::$_cache = (null !== $userAgent) && (false !== stripos($userAgent, 'Speed Insights')); |
||
| 47 | } |
||
| 48 | |||
| 49 | return self::$_cache; |
||
| 50 | } |
||
| 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.