| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | } |
||
| 17 | return $this->isUserDepartmentLead($deptId, $this->user); |
||
|
1 ignored issue
–
show
|
|||
| 18 | } |
||
| 19 | |||
| 20 | protected function canUpdate($request, $entity) |
||
| 21 | { |
||
| 35 |
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: