Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param $query |
||
51 | * |
||
52 | * @return bool|\PDOStatement |
||
53 | */ |
||
54 | 2 | View Code Duplication | public function query($query) |
85 |
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: