| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 7 | 
| Lines | 7 | 
| Ratio | 100 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 21 | View Code Duplication | public function overflow() | |
| 22 |     { | ||
| 23 | $columnNames = $this->getColumnNames(); | ||
| 24 | $attributes = array_diff_key($this->request->all(), $columnNames); | ||
| 25 | $attributes = json_encode($attributes); | ||
| 26 | return $attributes; | ||
| 27 | } | ||
| 28 | |||
| 41 | 
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: