@@ -222,7 +222,7 @@ |
||
222 | 222 | //Fetching enum values |
223 | 223 | if ($options !== [] && $column->getAbstractType() === 'enum') { |
224 | 224 | $column->enumValues = array_map( |
225 | - static function ($value) { |
|
225 | + static function($value) { |
|
226 | 226 | return trim($value, $value[0]); |
227 | 227 | }, |
228 | 228 | $options |
@@ -106,8 +106,8 @@ |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | $this->primaryKeys[$name] = $this->getSchemaHandler() |
109 | - ->getSchema($table, $prefix) |
|
110 | - ->getPrimaryKeys(); |
|
109 | + ->getSchema($table, $prefix) |
|
110 | + ->getPrimaryKeys(); |
|
111 | 111 | |
112 | 112 | if (count($this->primaryKeys[$name]) === 1) { |
113 | 113 | //We do support only single primary key |
@@ -189,7 +189,7 @@ |
||
189 | 189 | return new StatementException\ConnectionException($exception, $query); |
190 | 190 | } |
191 | 191 | |
192 | - if ((int) $exception->getCode() >= 23000 && (int) $exception->getCode() < 24000) { |
|
192 | + if ((int)$exception->getCode() >= 23000 && (int)$exception->getCode() < 24000) { |
|
193 | 193 | return new StatementException\ConstrainException($exception, $query); |
194 | 194 | } |
195 | 195 |
@@ -315,7 +315,7 @@ |
||
315 | 315 | } |
316 | 316 | } |
317 | 317 | |
318 | - $hash .= (string) $column . ','; |
|
318 | + $hash .= (string)$column . ','; |
|
319 | 319 | } |
320 | 320 | |
321 | 321 | return $hash; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | { |
153 | 153 | return preg_replace_callback( |
154 | 154 | '/([a-z][0-9_a-z\.]*\(?)/i', |
155 | - function ($match) { |
|
155 | + function($match) { |
|
156 | 156 | $identifier = $match[1]; |
157 | 157 | |
158 | 158 | //Function name |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | { |
310 | 310 | $result = []; |
311 | 311 | foreach ($groupBy as $identifier) { |
312 | - $result[] = $this->name($params, $q, $identifier); |
|
312 | + $result[] = $this->name($params, $q, $identifier); |
|
313 | 313 | } |
314 | 314 | |
315 | 315 | return implode(', ', $result); |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | { |
410 | 410 | // let's quote every identifier |
411 | 411 | $columns = array_map( |
412 | - function ($column) use ($params, $q) { |
|
412 | + function($column) use ($params, $q) { |
|
413 | 413 | return $this->name($params, $q, $column); |
414 | 414 | }, |
415 | 415 | $columns |
@@ -108,7 +108,7 @@ |
||
108 | 108 | */ |
109 | 109 | private function whereWrapper(): Closure |
110 | 110 | { |
111 | - return static function ($parameter) { |
|
111 | + return static function($parameter) { |
|
112 | 112 | if (is_array($parameter)) { |
113 | 113 | throw new BuilderException( |
114 | 114 | 'Arrays must be wrapped with Parameter instance' |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | private function onWrapper(): Closure |
375 | 375 | { |
376 | - return static function ($parameter) { |
|
376 | + return static function($parameter) { |
|
377 | 377 | if ($parameter instanceof FragmentInterface || $parameter instanceof ParameterInterface) { |
378 | 378 | return $parameter; |
379 | 379 | } |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | */ |
390 | 390 | private function onWhereWrapper(): Closure |
391 | 391 | { |
392 | - return static function ($parameter) { |
|
392 | + return static function($parameter) { |
|
393 | 393 | if (is_array($parameter)) { |
394 | 394 | throw new BuilderException( |
395 | 395 | 'Arrays must be wrapped with Parameter instance' |
@@ -108,7 +108,7 @@ |
||
108 | 108 | */ |
109 | 109 | private function havingWrapper(): Closure |
110 | 110 | { |
111 | - return static function ($parameter) { |
|
111 | + return static function($parameter) { |
|
112 | 112 | if (is_array($parameter)) { |
113 | 113 | throw new BuilderException( |
114 | 114 | 'Arrays must be wrapped with Parameter instance' |
@@ -834,7 +834,7 @@ |
||
834 | 834 | foreach ($target->getForeignKeys() as $foreign) { |
835 | 835 | $foreign->columns( |
836 | 836 | array_map( |
837 | - static function ($column) use ($initial, $name) { |
|
837 | + static function($column) use ($initial, $name) { |
|
838 | 838 | if ($column === $initial->getName()) { |
839 | 839 | return $name->getName(); |
840 | 840 | } |