| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 99 | public function __construct(array $event) { |
||
| 100 | $keys = ['_id', 'hostname', 'link', 'location', 'message', 'referrer', 'severity', 'timestamp', 'type', 'uid', 'variables']; |
||
| 101 | foreach ($keys as $key) { |
||
| 102 | if (isset($event[$key])) { |
||
| 103 | $this->$key = $event[$key]; |
||
| 104 | } |
||
| 105 | } |
||
| 106 | } |
||
| 107 | } |
||
| 108 |
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.