@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Execute the console command. |
| 35 | 35 | * |
| 36 | - * @return bool|null |
|
| 36 | + * @return false|null |
|
| 37 | 37 | */ |
| 38 | 38 | public function handle() |
| 39 | 39 | { |
@@ -71,9 +71,8 @@ discard block |
||
| 71 | 71 | * Replace the User model, if it was moved to App\Models\User. |
| 72 | 72 | * |
| 73 | 73 | * @param string $stub |
| 74 | - * @param string $name |
|
| 75 | 74 | * |
| 76 | - * @return $this |
|
| 75 | + * @return string |
|
| 77 | 76 | */ |
| 78 | 77 | protected function makeReplacements(&$stub) |
| 79 | 78 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Answer to unauthorized access request. |
| 31 | 31 | * |
| 32 | - * @param [type] $request [description] |
|
| 32 | + * @param \Illuminate\Http\Request $request [description] |
|
| 33 | 33 | * |
| 34 | 34 | * @return [type] [description] |
| 35 | 35 | */ |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Execute the console command. |
| 35 | 35 | * |
| 36 | - * @return bool|null |
|
| 36 | + * @return false|null |
|
| 37 | 37 | */ |
| 38 | 38 | public function handle() |
| 39 | 39 | { |
@@ -71,9 +71,8 @@ discard block |
||
| 71 | 71 | * Replace the User model, if it was moved to App\Models\User. |
| 72 | 72 | * |
| 73 | 73 | * @param string $stub |
| 74 | - * @param string $name |
|
| 75 | 74 | * |
| 76 | - * @return $this |
|
| 75 | + * @return string |
|
| 77 | 76 | */ |
| 78 | 77 | protected function makeReplacements(&$stub) |
| 79 | 78 | { |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * Appends the configured backpack prefix and returns |
| 6 | 6 | * the URL using the standard Laravel helpers. |
| 7 | 7 | * |
| 8 | - * @param $path |
|
| 8 | + * @param string $path |
|
| 9 | 9 | * |
| 10 | 10 | * @return string |
| 11 | 11 | */ |
@@ -155,6 +155,7 @@ discard block |
||
| 155 | 155 | * If that view doesn't exist, it will load the one from the original theme. |
| 156 | 156 | * |
| 157 | 157 | * @param string (see config/backpack/base.php) |
| 158 | + * @param string $view |
|
| 158 | 159 | * |
| 159 | 160 | * @return string |
| 160 | 161 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ], |
| 45 | 45 | |
| 46 | 46 | // CSS files that are loaded in all pages, using Laravel's mix() helper |
| 47 | - 'mix_styles' => [ // file_path => manifest_directory_path |
|
| 47 | + 'mix_styles' => [// file_path => manifest_directory_path |
|
| 48 | 48 | // 'css/app.css' => '', |
| 49 | 49 | ], |
| 50 | 50 | |
@@ -18,14 +18,14 @@ |
||
| 18 | 18 | |
| 19 | 19 | public static function bootHasParent() |
| 20 | 20 | { |
| 21 | - static::creating(function ($model) { |
|
| 21 | + static::creating(function($model) { |
|
| 22 | 22 | if ($model->parentHasHasChildrenTrait()) { |
| 23 | 23 | $model->forceFill( |
| 24 | 24 | [$model->getInheritanceColumn() => $model->classToAlias(get_class($model))] |
| 25 | 25 | ); |
| 26 | 26 | } |
| 27 | 27 | }); |
| 28 | - static::addGlobalScope(function ($query) { |
|
| 28 | + static::addGlobalScope(function($query) { |
|
| 29 | 29 | $instance = new static(); |
| 30 | 30 | if ($instance->parentHasHasChildrenTrait()) { |
| 31 | 31 | $query->where($instance->getTable().'.'.$instance->getInheritanceColumn(), $instance->classToAlias(get_class($instance))); |