| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Mascame\Artificer\Controllers; |
||
| 9 | public function home() |
||
| 10 | { |
||
| 11 | $hiddenModels = AdminOption::get('model.hidden'); |
||
| 12 | |||
| 13 | $nonHiddenModels = array_diff(array_keys($this->modelObject->schema->models), $hiddenModels); |
||
| 14 | |||
| 15 | $firstModel = head($nonHiddenModels); |
||
| 16 | |||
| 17 | return Redirect::route('admin.model.all', |
||
|
|
|||
| 18 | array('slug' => $this->modelObject->schema->models[$firstModel]['route'])); |
||
| 19 | } |
||
| 20 | |||
| 22 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.