| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CbMenuServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Bootstrap the application services. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | $this->app['view']->addNamespace('CbMenu', __DIR__.'/views'); |
||
| 17 | $this->loadRoutesFrom( __DIR__.'/menus_routes.php'); |
||
| 18 | $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
||
| 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbMenu::menu'); |
||
|
|
|||
| 20 | app('CbDynamicMenus')->addMenu('CbMenu::dynamic_menus'); |
||
| 21 | $this->registerModule(); |
||
| 22 | |||
| 23 | /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
||
| 24 | if (false && $hasDashboard) { |
||
| 25 | app('CbDynamicMenus')->addMenu('CbMenu::dashboard'); |
||
| 26 | }*/ |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Register the application services. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function register() |
||
| 36 | } |
||
| 37 | |||
| 38 | private function registerModule() |
||
| 48 | ]); |
||
| 49 | } |
||
| 52 |
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.