| Conditions | 2 |
| Paths | 2 |
| Total Lines | 35 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function boot() { |
||
| 12 | /** |
||
| 13 | * Migrations |
||
| 14 | */ |
||
| 15 | $path = __DIR__ . '/database/migrations'; |
||
| 16 | $this->publishes([ |
||
| 17 | $path => database_path('/migrations/test') |
||
| 18 | ], 'migrations'); |
||
| 19 | |||
| 20 | |||
| 21 | /** |
||
| 22 | * Views |
||
| 23 | */ |
||
| 24 | |||
| 25 | $view_path = app_path().DIRECTORY_SEPARATOR.'Plugins'.DIRECTORY_SEPARATOR.'ServiceDesk'.DIRECTORY_SEPARATOR.'views'; |
||
| 26 | $this->loadViewsFrom($view_path, 'service'); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Translation |
||
| 30 | */ |
||
| 31 | $trans = app_path().DIRECTORY_SEPARATOR.'Plugins'.DIRECTORY_SEPARATOR.'ServiceDesk'.DIRECTORY_SEPARATOR.'lang'; |
||
| 32 | $this->loadTranslationsFrom($trans, 'service'); |
||
| 33 | $controller = new \App\Plugins\ServiceDesk\Controllers\ActivateController(); |
||
| 34 | $a = $controller->activate(); |
||
|
|
|||
| 35 | |||
| 36 | $controller = new Controllers\ActivateController(); |
||
| 37 | $controller->activate(); |
||
| 38 | |||
| 39 | if (class_exists('Breadcrumbs')){ |
||
| 40 | require __DIR__ . '/breadcrumbs.php'; |
||
| 41 | } |
||
| 42 | |||
| 43 | parent::boot('ServiceDesk'); |
||
| 44 | |||
| 45 | } |
||
| 46 | |||
| 48 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.