File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ protected function makeRequestClass()
83
83
84
84
protected function confirmModelExists ()
85
85
{
86
- $ modelClass = $ this ->parseModel ($ this ->option ('model ' ));
86
+ $ modelClass = $ this ->parseModel (/** @scrutinizer ignore-type */ $ this ->option ('model ' ));
87
87
88
88
if (! class_exists ($ modelClass , false )) {
89
89
if ($ this ->confirm ("A {$ modelClass } model does not exist!! Do you want to generate it? " , true )) {
@@ -98,7 +98,7 @@ protected function confirmModelExists()
98
98
99
99
protected function confirmModelPolicyExists ()
100
100
{
101
- $ modelClass = $ this ->parseModel ($ this ->option ('model ' ));
101
+ $ modelClass = $ this ->parseModel (/** @scrutinizer ignore-type */ $ this ->option ('model ' ));
102
102
$ model = class_basename ($ modelClass );
103
103
$ policyClass = rtrim ($ modelClass , $ model ).'Policies \\' .$ model .'Policy ' ;
104
104
if (! class_exists ($ policyClass )) {
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ public function handle()
48
48
*/
49
49
protected function createMigration ()
50
50
{
51
- $ table = Str::snake (Str::pluralStudly (class_basename ($ this ->argument ('name ' ))));
51
+ $ table = Str::snake (Str::pluralStudly (class_basename (/** @scrutinizer ignore-type */ $ this ->argument ('name ' ))));
52
52
53
53
$ this ->call ('make:migration ' , [
54
- 'name ' => "create_ {$ table }_table " ,
54
+ 'name ' => "create_ {$ table }_table " ,
55
55
'--create ' => $ table ,
56
56
]);
57
57
}
@@ -68,7 +68,7 @@ protected function createPolicy()
68
68
$ policy = rtrim ($ modelName , $ name ).'Policies \\' .$ name ;
69
69
70
70
$ this ->call ('make:api:policy ' , [
71
- 'name ' => "{$ policy }Policy " ,
71
+ 'name ' => "{$ policy }Policy " ,
72
72
'--model ' => $ modelName ,
73
73
]);
74
74
}
@@ -92,8 +92,8 @@ protected function getStub()
92
92
protected function resolveStubPath ($ stub )
93
93
{
94
94
return file_exists ($ customPath = $ this ->laravel ->basePath (trim ($ stub , '/ ' )))
95
- ? $ customPath
96
- : __DIR__ .$ stub ;
95
+ ? $ customPath
96
+ : __DIR__ .$ stub ;
97
97
}
98
98
99
99
protected function getOptions ()
You can’t perform that action at this time.
0 commit comments