Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Mascame\Artificer\Http\Controllers; |
||
10 | public function home() |
||
11 | { |
||
12 | $hiddenModels = AdminOption::get('models.hidden'); |
||
13 | |||
14 | $nonHiddenModels = array_diff(array_keys($this->modelObject->schema->models), $hiddenModels); |
||
15 | |||
16 | $firstModel = head($nonHiddenModels); |
||
17 | |||
18 | return Redirect::route('admin.model.all', |
||
|
|||
19 | array('slug' => $this->modelObject->schema->models[$firstModel]['route'])); |
||
20 | } |
||
21 | |||
50 | } |
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.