| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 16.66% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class Widget implements WidgetInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \Illuminate\View\View |
||
| 12 | */ |
||
| 13 | protected $view; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | 285 | public function active() |
|
| 19 | { |
||
| 20 | 285 | return true; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return int |
||
| 25 | */ |
||
| 26 | public function position() |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param View $view |
||
| 33 | */ |
||
| 34 | public function setInjectableView(View $view) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function toArray() |
||
| 52 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.