| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getFunctions() |
||
| 19 | { |
||
| 20 | $array = [ |
||
| 21 | new Twig_SimpleFunction('sludio_is_ie', [ |
||
| 22 | $this, |
||
| 23 | 'isIE', |
||
| 24 | ]), |
||
| 25 | ]; |
||
| 26 | |||
| 27 | $short_array = [ |
||
| 28 | new Twig_SimpleFunction('is_ie', [ |
||
| 29 | $this, |
||
| 30 | 'isIE', |
||
| 31 | ]), |
||
| 32 | ]; |
||
| 33 | |||
| 34 | if ($this->short_functions) { |
||
| 35 | return array_merge($array, $short_array); |
||
| 36 | } else { |
||
| 37 | return $array; |
||
| 38 | } |
||
| 57 |
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.