| Conditions | 3 |
| Paths | 4 |
| Total Lines | 27 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Mascame\Artificer\Http\Controllers; |
||
| 22 | public function install() |
||
| 23 | { |
||
| 24 | $this->modelObject = App::make('artificer-model'); |
||
| 25 | |||
| 26 | try { |
||
| 27 | $user = \User::firstOrFail(); |
||
| 28 | |||
| 29 | // We check if there are users |
||
| 30 | if ($user) { |
||
| 31 | App::abort(404); |
||
| 32 | } |
||
| 33 | |||
| 34 | } catch (\Exception $e) { |
||
| 35 | $this->shareMainViewData(); |
||
| 36 | |||
| 37 | $user = new \User(); |
||
| 38 | $user->role = 'admin'; |
||
| 39 | |||
| 40 | \Auth::login($user); |
||
| 41 | |||
| 42 | return \View::make($this->getView('install')) |
||
| 43 | ->with('plugins', App::make('ArtificerPluginManager')->getAll()); |
||
| 44 | // dd('install process... here we will scan models, maybe help with config and first user setup'); |
||
| 45 | } |
||
| 46 | |||
| 47 | |||
| 48 | } |
||
| 49 | |||
| 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.