Skip to content

Commit 027a2c6

Browse files
tabacituStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 8c838a2 commit 027a2c6

10 files changed

+33
-62
lines changed

src/Console/Commands/ChartControllerBackpackCommand.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ class ChartControllerBackpackCommand extends GeneratorCommand
3838
/**
3939
* Get the destination class path.
4040
*
41-
* @param string $name
42-
*
41+
* @param string $name
4342
* @return string
4443
*/
4544
protected function getPath($name)
@@ -62,8 +61,7 @@ protected function getStub()
6261
/**
6362
* Get the default namespace for the class.
6463
*
65-
* @param string $rootNamespace
66-
*
64+
* @param string $rootNamespace
6765
* @return string
6866
*/
6967
protected function getDefaultNamespace($rootNamespace)
@@ -74,9 +72,8 @@ protected function getDefaultNamespace($rootNamespace)
7472
/**
7573
* Replace the table name for the given stub.
7674
*
77-
* @param string $stub
78-
* @param string $name
79-
*
75+
* @param string $stub
76+
* @param string $name
8077
* @return string
8178
*/
8279
protected function replaceRouteStrings(&$stub)
@@ -89,8 +86,7 @@ protected function replaceRouteStrings(&$stub)
8986
/**
9087
* Build the class with the given name.
9188
*
92-
* @param string $name
93-
*
89+
* @param string $name
9490
* @return string
9591
*/
9692
protected function buildClass($name)

src/Console/Commands/ConfigBackpackCommand.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ public function fire()
8282
/**
8383
* Determine if the class already exists.
8484
*
85-
* @param string $name
86-
*
85+
* @param string $name
8786
* @return bool
8887
*/
8988
protected function alreadyExists($name)
@@ -94,8 +93,7 @@ protected function alreadyExists($name)
9493
/**
9594
* Get the destination class path.
9695
*
97-
* @param string $name
98-
*
96+
* @param string $name
9997
* @return string
10098
*/
10199
protected function getPath($name)
@@ -106,8 +104,7 @@ protected function getPath($name)
106104
/**
107105
* Build the class with the given name.
108106
*
109-
* @param string $name
110-
*
107+
* @param string $name
111108
* @return string
112109
*/
113110
protected function buildClass($name)

src/Console/Commands/CrudBackpackCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function handle()
3333
$nameKebab = Str::kebab($nameTitle);
3434
$namePlural = ucfirst(str_replace('-', ' ', Str::plural($nameKebab)));
3535

36-
3736
// Create the CRUD Model and show output
3837
$this->call('backpack:crud-model', ['name' => $nameTitle]);
3938

src/Console/Commands/CrudControllerBackpackCommand.php

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class CrudControllerBackpackCommand extends GeneratorCommand
3939
/**
4040
* Get the destination class path.
4141
*
42-
* @param string $name
43-
*
42+
* @param string $name
4443
* @return string
4544
*/
4645
protected function getPath($name)
@@ -63,8 +62,7 @@ protected function getStub()
6362
/**
6463
* Get the default namespace for the class.
6564
*
66-
* @param string $rootNamespace
67-
*
65+
* @param string $rootNamespace
6866
* @return string
6967
*/
7068
protected function getDefaultNamespace($rootNamespace)
@@ -75,9 +73,8 @@ protected function getDefaultNamespace($rootNamespace)
7573
/**
7674
* Replace the table name for the given stub.
7775
*
78-
* @param string $stub
79-
* @param string $name
80-
*
76+
* @param string $stub
77+
* @param string $name
8178
* @return string
8279
*/
8380
protected function replaceNameStrings(&$stub, $name)
@@ -114,9 +111,8 @@ protected function getAttributes($model)
114111
/**
115112
* Replace the table name for the given stub.
116113
*
117-
* @param string $stub
118-
* @param string $name
119-
*
114+
* @param string $stub
115+
* @param string $name
120116
* @return string
121117
*/
122118
protected function replaceSetFromDb(&$stub, $name)
@@ -158,7 +154,6 @@ protected function replaceSetFromDb(&$stub, $name)
158154
*
159155
* @param string $stub
160156
* @param string $name
161-
*
162157
* @return string
163158
*/
164159
protected function replaceModel(&$stub, $name)
@@ -172,8 +167,7 @@ protected function replaceModel(&$stub, $name)
172167
/**
173168
* Build the class with the given name.
174169
*
175-
* @param string $name
176-
*
170+
* @param string $name
177171
* @return string
178172
*/
179173
protected function buildClass($name)

src/Console/Commands/CrudModelBackpackCommand.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ protected function getStub()
147147
/**
148148
* Replace the table name for the given stub.
149149
*
150-
* @param string $stub
151-
* @param string $name
152-
*
150+
* @param string $stub
151+
* @param string $name
153152
* @return string
154153
*/
155154
protected function replaceTable(&$stub, $name)
@@ -166,8 +165,7 @@ protected function replaceTable(&$stub, $name)
166165
/**
167166
* Build the class with the given name.
168167
*
169-
* @param string $name
170-
*
168+
* @param string $name
171169
* @return string
172170
*/
173171
protected function buildClass($name)

src/Console/Commands/CrudOperationBackpackCommand.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ class CrudOperationBackpackCommand extends GeneratorCommand
3838
/**
3939
* Get the destination class path.
4040
*
41-
* @param string $name
42-
*
41+
* @param string $name
4342
* @return string
4443
*/
4544
protected function getPath($name)
@@ -62,8 +61,7 @@ protected function getStub()
6261
/**
6362
* Get the default namespace for the class.
6463
*
65-
* @param string $rootNamespace
66-
*
64+
* @param string $rootNamespace
6765
* @return string
6866
*/
6967
protected function getDefaultNamespace($rootNamespace)
@@ -74,9 +72,8 @@ protected function getDefaultNamespace($rootNamespace)
7472
/**
7573
* Replace the table name for the given stub.
7674
*
77-
* @param string $stub
78-
* @param string $name
79-
*
75+
* @param string $stub
76+
* @param string $name
8077
* @return string
8178
*/
8279
protected function replaceNameStrings(&$stub, $name)
@@ -92,8 +89,7 @@ protected function replaceNameStrings(&$stub, $name)
9289
/**
9390
* Build the class with the given name.
9491
*
95-
* @param string $name
96-
*
92+
* @param string $name
9793
* @return string
9894
*/
9995
protected function buildClass($name)

src/Console/Commands/CrudRequestBackpackCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ class CrudRequestBackpackCommand extends GeneratorCommand
3737
/**
3838
* Get the destination class path.
3939
*
40-
* @param string $name
41-
*
40+
* @param string $name
4241
* @return string
4342
*/
4443
protected function getPath($name)
@@ -61,8 +60,7 @@ protected function getStub()
6160
/**
6261
* Get the default namespace for the class.
6362
*
64-
* @param string $rootNamespace
65-
*
63+
* @param string $rootNamespace
6664
* @return string
6765
*/
6866
protected function getDefaultNamespace($rootNamespace)

src/Console/Commands/ModelBackpackCommand.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ protected function getStub()
5252
/**
5353
* Get the default namespace for the class.
5454
*
55-
* @param string $rootNamespace
56-
*
55+
* @param string $rootNamespace
5756
* @return string
5857
*/
5958
protected function getDefaultNamespace($rootNamespace)
@@ -64,9 +63,8 @@ protected function getDefaultNamespace($rootNamespace)
6463
/**
6564
* Replace the table name for the given stub.
6665
*
67-
* @param string $stub
68-
* @param string $name
69-
*
66+
* @param string $stub
67+
* @param string $name
7068
* @return string
7169
*/
7270
protected function replaceTable(&$stub, $name)
@@ -83,8 +81,7 @@ protected function replaceTable(&$stub, $name)
8381
/**
8482
* Build the class with the given name.
8583
*
86-
* @param string $name
87-
*
84+
* @param string $name
8885
* @return string
8986
*/
9087
protected function buildClass($name)

src/Console/Commands/RequestBackpackCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ protected function getStub()
4747
/**
4848
* Get the default namespace for the class.
4949
*
50-
* @param string $rootNamespace
51-
*
50+
* @param string $rootNamespace
5251
* @return string
5352
*/
5453
protected function getDefaultNamespace($rootNamespace)

src/Console/Commands/ViewBackpackCommand.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public function fire()
8686
/**
8787
* Determine if the class already exists.
8888
*
89-
* @param string $name
90-
*
89+
* @param string $name
9190
* @return bool
9291
*/
9392
protected function alreadyExists($name)
@@ -98,8 +97,7 @@ protected function alreadyExists($name)
9897
/**
9998
* Get the destination class path.
10099
*
101-
* @param string $name
102-
*
100+
* @param string $name
103101
* @return string
104102
*/
105103
protected function getPath($name)
@@ -110,8 +108,7 @@ protected function getPath($name)
110108
/**
111109
* Build the class with the given name.
112110
*
113-
* @param string $name
114-
*
111+
* @param string $name
115112
* @return string
116113
*/
117114
protected function buildClass($name)

0 commit comments

Comments
 (0)