| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php namespace Distilleries\Expendable\Http\Datatables\User; |
||
| 17 | 4 | public function applyFilters() |
|
| 18 | { |
||
| 19 | 4 | parent::applyFilters(); |
|
| 20 | 4 | if (UserUtils::isNotSuperAdmin()) |
|
| 21 | { |
||
| 22 | 4 | $super_admin = Role::where('initials', '=', '@sa')->get()->last(); |
|
| 23 | |||
| 24 | 4 | if (!empty($super_admin)) |
|
| 25 | { |
||
| 26 | 2 | $this->model = $this->model->where('role_id', '!=', $super_admin->id); |
|
|
|
|||
| 27 | } |
||
| 42 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..