Skip to content

Commit e0f6b6d

Browse files
committed
Revert "(+) fix styleci"
This reverts commit c02bca5.
1 parent 08db883 commit e0f6b6d

File tree

1 file changed

+40
-41
lines changed

1 file changed

+40
-41
lines changed

src/Query/Builder.php

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function __construct(Connection $connection, Processor $processor)
141141
/**
142142
* Set the projections.
143143
*
144-
* @param array $columns
144+
* @param array $columns
145145
* @return $this
146146
*/
147147
public function project($columns)
@@ -153,8 +153,7 @@ public function project($columns)
153153

154154
/**
155155
* Set the cursor timeout in seconds.
156-
*
157-
* @param int $seconds
156+
* @param int $seconds
158157
* @return $this
159158
*/
160159
public function timeout($seconds)
@@ -167,7 +166,7 @@ public function timeout($seconds)
167166
/**
168167
* Set the cursor hint.
169168
*
170-
* @param mixed $index
169+
* @param mixed $index
171170
* @return $this
172171
*/
173172
public function hint($index)
@@ -218,8 +217,8 @@ public function cursor($columns = [])
218217
/**
219218
* Execute the query as a fresh "select" statement.
220219
*
221-
* @param array $columns
222-
* @param bool $returnLazy
220+
* @param array $columns
221+
* @param bool $returnLazy
223222
* @return array|static[]|Collection|LazyCollection
224223
*/
225224
public function getFresh($columns = [], $returnLazy = false)
@@ -523,10 +522,10 @@ public function orderBy($column, $direction = 'asc')
523522
/**
524523
* Add a "where all" clause to the query.
525524
*
526-
* @param string $column
527-
* @param array $values
528-
* @param string $boolean
529-
* @param bool $not
525+
* @param string $column
526+
* @param array $values
527+
* @param string $boolean
528+
* @param bool $not
530529
* @return $this
531530
*/
532531
public function whereAll($column, array $values, $boolean = 'and', $not = false)
@@ -730,8 +729,8 @@ public function truncate(): bool
730729
/**
731730
* Get an array with the values of a given column.
732731
*
733-
* @param string $column
734-
* @param string $key
732+
* @param string $column
733+
* @param string $key
735734
* @return array
736735
*
737736
* @deprecated
@@ -763,9 +762,9 @@ public function raw($expression = null)
763762
/**
764763
* Append one or more values to an array.
765764
*
766-
* @param mixed $column
767-
* @param mixed $value
768-
* @param bool $unique
765+
* @param mixed $column
766+
* @param mixed $value
767+
* @param bool $unique
769768
* @return int
770769
*/
771770
public function push($column, $value = null, $unique = false)
@@ -790,8 +789,8 @@ public function push($column, $value = null, $unique = false)
790789
/**
791790
* Remove one or more values from an array.
792791
*
793-
* @param mixed $column
794-
* @param mixed $value
792+
* @param mixed $column
793+
* @param mixed $value
795794
* @return int
796795
*/
797796
public function pull($column, $value = null)
@@ -814,7 +813,7 @@ public function pull($column, $value = null)
814813
/**
815814
* Remove one or more fields.
816815
*
817-
* @param mixed $columns
816+
* @param mixed $columns
818817
* @return int
819818
*/
820819
public function drop($columns)
@@ -845,8 +844,8 @@ public function newQuery()
845844
/**
846845
* Perform an update query.
847846
*
848-
* @param array $query
849-
* @param array $options
847+
* @param array $query
848+
* @param array $options
850849
* @return int
851850
*/
852851
protected function performUpdate($query, array $options = [])
@@ -868,7 +867,7 @@ protected function performUpdate($query, array $options = [])
868867
/**
869868
* Convert a key to ObjectID if needed.
870869
*
871-
* @param mixed $id
870+
* @param mixed $id
872871
* @return mixed
873872
*/
874873
public function convertKey($id)
@@ -1002,7 +1001,7 @@ protected function compileWheres()
10021001
}
10031002

10041003
/**
1005-
* @param array $where
1004+
* @param array $where
10061005
* @return array
10071006
*/
10081007
protected function compileWhereAll(array $where)
@@ -1013,7 +1012,7 @@ protected function compileWhereAll(array $where)
10131012
}
10141013

10151014
/**
1016-
* @param array $where
1015+
* @param array $where
10171016
* @return array
10181017
*/
10191018
protected function compileWhereBasic(array $where)
@@ -1069,7 +1068,7 @@ protected function compileWhereBasic(array $where)
10691068
}
10701069

10711070
/**
1072-
* @param array $where
1071+
* @param array $where
10731072
* @return mixed
10741073
*/
10751074
protected function compileWhereNested(array $where)
@@ -1080,7 +1079,7 @@ protected function compileWhereNested(array $where)
10801079
}
10811080

10821081
/**
1083-
* @param array $where
1082+
* @param array $where
10841083
* @return array
10851084
*/
10861085
protected function compileWhereIn(array $where)
@@ -1091,7 +1090,7 @@ protected function compileWhereIn(array $where)
10911090
}
10921091

10931092
/**
1094-
* @param array $where
1093+
* @param array $where
10951094
* @return array
10961095
*/
10971096
protected function compileWhereNotIn(array $where)
@@ -1102,7 +1101,7 @@ protected function compileWhereNotIn(array $where)
11021101
}
11031102

11041103
/**
1105-
* @param array $where
1104+
* @param array $where
11061105
* @return array
11071106
*/
11081107
protected function compileWhereNull(array $where)
@@ -1114,7 +1113,7 @@ protected function compileWhereNull(array $where)
11141113
}
11151114

11161115
/**
1117-
* @param array $where
1116+
* @param array $where
11181117
* @return array
11191118
*/
11201119
protected function compileWhereNotNull(array $where)
@@ -1126,7 +1125,7 @@ protected function compileWhereNotNull(array $where)
11261125
}
11271126

11281127
/**
1129-
* @param array $where
1128+
* @param array $where
11301129
* @return array
11311130
*/
11321131
protected function compileWhereBetween(array $where)
@@ -1159,7 +1158,7 @@ protected function compileWhereBetween(array $where)
11591158
}
11601159

11611160
/**
1162-
* @param array $where
1161+
* @param array $where
11631162
* @return array
11641163
*/
11651164
protected function compileWhereDate(array $where)
@@ -1171,7 +1170,7 @@ protected function compileWhereDate(array $where)
11711170

11721171
$operator = $this->conversion[$operator];
11731172

1174-
return match ($operator) {
1173+
return match($operator) {
11751174
'=' => [
11761175
$column => [
11771176
'$gte' => $startOfDay,
@@ -1208,7 +1207,7 @@ protected function compileWhereDate(array $where)
12081207
}
12091208

12101209
/**
1211-
* @param array $where
1210+
* @param array $where
12121211
* @return array
12131212
*/
12141213
protected function compileWhereMonth(array $where)
@@ -1222,7 +1221,7 @@ protected function compileWhereMonth(array $where)
12221221
'$expr' => [
12231222
$operator => [
12241223
[
1225-
'$month' => '$'.$column,
1224+
'$month' => '$'.$column
12261225
],
12271226
$value,
12281227
],
@@ -1231,7 +1230,7 @@ protected function compileWhereMonth(array $where)
12311230
}
12321231

12331232
/**
1234-
* @param array $where
1233+
* @param array $where
12351234
* @return array
12361235
*/
12371236
protected function compileWhereDay(array $where)
@@ -1245,7 +1244,7 @@ protected function compileWhereDay(array $where)
12451244
'$expr' => [
12461245
$operator => [
12471246
[
1248-
'$dayOfMonth' => '$'.$column,
1247+
'$dayOfMonth' => '$'.$column
12491248
],
12501249
$value,
12511250
],
@@ -1254,7 +1253,7 @@ protected function compileWhereDay(array $where)
12541253
}
12551254

12561255
/**
1257-
* @param array $where
1256+
* @param array $where
12581257
* @return array
12591258
*/
12601259
protected function compileWhereYear(array $where)
@@ -1267,16 +1266,16 @@ protected function compileWhereYear(array $where)
12671266
'$expr' => [
12681267
$operator => [
12691268
[
1270-
'$year' => '$'.$column,
1269+
'$year' => '$'.$column
12711270
],
1272-
$value,
1271+
$value
12731272
],
12741273
],
12751274
];
12761275
}
12771276

12781277
/**
1279-
* @param array $where
1278+
* @param array $where
12801279
* @return array
12811280
*/
12821281
protected function compileWhereTime(array $where)
@@ -1290,7 +1289,7 @@ protected function compileWhereTime(array $where)
12901289
}
12911290

12921291
/**
1293-
* @param array $where
1292+
* @param array $where
12941293
* @return mixed
12951294
*/
12961295
protected function compileWhereRaw(array $where)
@@ -1301,7 +1300,7 @@ protected function compileWhereRaw(array $where)
13011300
/**
13021301
* Set custom options for the query.
13031302
*
1304-
* @param array $options
1303+
* @param array $options
13051304
* @return $this
13061305
*/
13071306
public function options(array $options)

0 commit comments

Comments
 (0)