| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function show($arguments) |
||
| 37 | { |
||
| 38 | $this->extractArguments($arguments); |
||
| 39 | |||
| 40 | $view = $this->view ?: 'tag::admin.fields.tags'; |
||
| 41 | |||
| 42 | $availableTags = $this->tag->allForNamespace($this->namespace); |
||
| 43 | |||
| 44 | $tags = $this->getTags(); |
||
| 45 | |||
| 46 | return view($view, compact('availableTags', 'tags')); |
||
| 47 | } |
||
| 48 | |||
| 73 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: