Skip to content

Commit ab47390

Browse files
AdalbertMemSQLgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 090b1aa commit ab47390

File tree

6 files changed

+3
-44
lines changed

6 files changed

+3
-44
lines changed

src/Query/Grammar.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Grammar extends MySqlGrammar
1010
/**
1111
* Compile a "where fulltext" clause.
1212
*
13-
* @param \Illuminate\Database\Query\Builder $query
1413
* @param array $where
1514
* @return string
1615
*/
@@ -24,8 +23,6 @@ public function whereFullText(Builder $query, $where)
2423
}
2524

2625
/**
27-
* @param $column
28-
* @param $value
2926
* @return string
3027
*/
3128
protected function compileJsonContains($column, $value)
@@ -153,7 +150,6 @@ protected function wrapUnion($sql)
153150
/**
154151
* Compile the "union" queries attached to the main query.
155152
*
156-
* @param Builder $query
157153
* @return string
158154
*/
159155
protected function compileUnions(Builder $query)
@@ -170,7 +166,6 @@ protected function compileUnions(Builder $query)
170166
/**
171167
* Compile a select query into SQL.
172168
*
173-
* @param Builder $query
174169
* @return string
175170
*/
176171
public function compileSelect(Builder $query)
@@ -199,8 +194,6 @@ public function compileSelect(Builder $query)
199194
/**
200195
* Compile the "offset" portions of the query.
201196
*
202-
* @param Builder $query
203-
* @param $offset
204197
* @return string
205198
*/
206199
protected function compileOffset(Builder $query, $offset)
@@ -210,10 +203,6 @@ protected function compileOffset(Builder $query, $offset)
210203

211204
/**
212205
* Compile the "offset" portions of the final union query.
213-
*
214-
* @param Builder $query
215-
* @param $offset
216-
* @return string
217206
*/
218207
protected function compileUnionOffset(Builder $query, $offset): string
219208
{
@@ -222,10 +211,6 @@ protected function compileUnionOffset(Builder $query, $offset): string
222211

223212
/**
224213
* Compile the "offset" portions of the query taking into account "limit" portion.
225-
*
226-
* @param $offset
227-
* @param $limit
228-
* @return string
229214
*/
230215
private function compileOffsetWithLimit($offset, $limit): string
231216
{

src/Schema/Blueprint.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public function geographyPoint($column)
3030
/**
3131
* Execute the blueprint against the database.
3232
*
33-
* @param \Illuminate\Database\Connection $connection
34-
* @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
3533
* @return void
3634
*/
3735
public function build(Connection $connection, Grammar $grammar)

src/Schema/Blueprint/InlinesIndexes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function inlineCreateIndexStatements($statements, $indexStatementKeys)
5454

5555
$search = SingleStoreBlueprint::INDEX_PLACEHOLDER;
5656

57-
if (!$indexStatements) {
57+
if (! $indexStatements) {
5858
// If there are no index statements at all, we need to replace the preceding comma as well.
5959
$search = ", $search";
6060
}
@@ -122,11 +122,11 @@ public function toSql(Connection $connection, Grammar $grammar)
122122
$indexStatementKeys = [];
123123

124124
foreach ($this->commands as $command) {
125-
$method = 'compile' . ucfirst($command->name);
125+
$method = 'compile'.ucfirst($command->name);
126126
$isIndex = $this->isIndexCommand($command);
127127

128128
if (method_exists($grammar, $method) || $grammar::hasMacro($method)) {
129-
if (!is_null($sql = $grammar->$method($this, $command, $connection))) {
129+
if (! is_null($sql = $grammar->$method($this, $command, $connection))) {
130130
$statements = array_merge($statements, (array) $sql);
131131
if ($isIndex) {
132132
array_push($indexStatementKeys, count($statements) - 1);

src/Schema/Blueprint/ModifiesIndexes.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
trait ModifiesIndexes
88
{
99
/**
10-
* @param $columns
1110
* @return \Illuminate\Support\Fluent
1211
*/
1312
public function shardKey($columns)
@@ -16,8 +15,6 @@ public function shardKey($columns)
1615
}
1716

1817
/**
19-
* @param $columns
20-
* @param $direction
2118
* @return \Illuminate\Support\Fluent
2219
*/
2320
public function sortKey($columns = null, $direction = 'asc')
@@ -29,8 +26,6 @@ public function sortKey($columns = null, $direction = 'asc')
2926
}
3027

3128
/**
32-
* @param $columns
33-
* @param $name
3429
* @return SpatialIndexCommand
3530
*/
3631
public function spatialIndex($columns, $name = null)

src/Schema/Builder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Builder extends MySqlBuilder
99
{
1010
/**
1111
* @param string $table
12-
* @param Closure|null $callback
1312
* @return \Illuminate\Database\Schema\Blueprint
1413
*/
1514
protected function createBlueprint($table, Closure $callback = null)

src/Schema/Grammar.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public function __construct()
2828
/**
2929
* Compile a primary key command.
3030
*
31-
* @param \Illuminate\Database\Schema\Blueprint $blueprint
32-
* @param \Illuminate\Support\Fluent $command
3331
* @return string
3432
*/
3533
public function compilePrimary(Blueprint $blueprint, Fluent $command)
@@ -42,7 +40,6 @@ public function compilePrimary(Blueprint $blueprint, Fluent $command)
4240
/**
4341
* Create the column definition for a spatial Geography type.
4442
*
45-
* @param \Illuminate\Support\Fluent $column
4643
* @return string
4744
*/
4845
public function typeGeography(Fluent $column)
@@ -53,7 +50,6 @@ public function typeGeography(Fluent $column)
5350
/**
5451
* Create the column definition for a spatial Point type.
5552
*
56-
* @param \Illuminate\Support\Fluent $column
5753
* @return string
5854
*/
5955
public function typePoint(Fluent $column)
@@ -83,7 +79,6 @@ protected function compileCreateTable($blueprint, $command, $connection)
8379
}
8480

8581
/**
86-
* @param Fluent $column
8782
* @return string
8883
*/
8984
protected function getType(Fluent $column)
@@ -105,8 +100,6 @@ protected function getType(Fluent $column)
105100
* Append the engine specifications to a command.
106101
*
107102
* @param string $sql
108-
* @param \Illuminate\Database\Connection $connection
109-
* @param \Illuminate\Database\Schema\Blueprint $blueprint
110103
* @return string
111104
*/
112105
protected function compileCreateEngine($sql, Connection $connection, Blueprint $blueprint)
@@ -123,8 +116,6 @@ protected function compileCreateEngine($sql, Connection $connection, Blueprint $
123116
}
124117

125118
/**
126-
* @param $blueprint
127-
* @param $compiled
128119
* @return string
129120
*
130121
* @throws Exception
@@ -149,7 +140,6 @@ protected function insertCreateTableModifiers($blueprint, $compiled)
149140
}
150141

151142
/**
152-
* @param Blueprint $blueprint
153143
* @return array
154144
*
155145
* @throws Exception
@@ -169,9 +159,6 @@ protected function getColumns(Blueprint $blueprint)
169159
}
170160

171161
/**
172-
* @param Blueprint $blueprint
173-
* @param Fluent $command
174-
* @param $type
175162
* @return array|string|string[]
176163
*/
177164
protected function compileKey(Blueprint $blueprint, Fluent $command, $type)
@@ -192,7 +179,6 @@ protected function compileKey(Blueprint $blueprint, Fluent $command, $type)
192179
/**
193180
* Convert an array of column names into a delimited string (with direction parameter).
194181
*
195-
* @param array $columns
196182
* @return string
197183
*/
198184
protected function columnizeWithDirection(array $columns, string $direction)
@@ -225,8 +211,6 @@ protected function columnizeWithDirection(array $columns, string $direction)
225211
/**
226212
* Get the SQL for an auto-increment column modifier.
227213
*
228-
* @param \Illuminate\Database\Schema\Blueprint $blueprint
229-
* @param \Illuminate\Support\Fluent $column
230214
* @return string|null
231215
*/
232216
protected function modifyIncrement(Blueprint $blueprint, Fluent $column)
@@ -241,8 +225,6 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column)
241225
/**
242226
* Compile a rename table command.
243227
*
244-
* @param \Illuminate\Database\Schema\Blueprint $blueprint
245-
* @param \Illuminate\Support\Fluent $command
246228
* @return string
247229
*/
248230
public function compileRename(Blueprint $blueprint, Fluent $command)

0 commit comments

Comments
 (0)