@@ -27,7 +27,6 @@ |
||
27 | 27 | /** |
28 | 28 | * Get the path the user should be redirected to after password reset. |
29 | 29 | * |
30 | - * @param \Illuminate\Http\Request $request |
|
31 | 30 | * |
32 | 31 | * @return string |
33 | 32 | */ |
@@ -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 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Backpack\Base\app\Http\Middleware; |
4 | 4 | |
5 | 5 | use Closure; |
6 | -use Illuminate\Support\Facades\Auth; |
|
7 | 6 | |
8 | 7 | class UseBackpackAuthGuardInsteadOfDefaultAuthGuard |
9 | 8 | { |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | public static function bootHasParent() |
21 | 21 | { |
22 | - static::creating(function ($model) { |
|
22 | + static::creating(function($model) { |
|
23 | 23 | if ($model->parentHasHasChildrenTrait()) { |
24 | 24 | $model->forceFill( |
25 | 25 | [$model->getInheritanceColumn() => $model->classToAlias(get_class($model))] |
26 | 26 | ); |
27 | 27 | } |
28 | 28 | }); |
29 | - static::addGlobalScope(function ($query) { |
|
29 | + static::addGlobalScope(function($query) { |
|
30 | 30 | $instance = new static; |
31 | 31 | if ($instance->parentHasHasChildrenTrait()) { |
32 | 32 | $query->where($instance->getInheritanceColumn(), $instance->classToAlias(get_class($instance))); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function getTable() |
43 | 43 | { |
44 | - if (! isset($this->table)) { |
|
44 | + if (!isset($this->table)) { |
|
45 | 45 | return str_replace('\\', '', Str::snake(Str::plural(class_basename($this->getParentClass())))); |
46 | 46 | } |
47 | 47 | return $this->table; |