@@ -79,7 +79,7 @@ |
||
79 | 79 | /** @uses ActiveRecord::find() */ |
80 | 80 | $query = $this->getQuery()->andWhere([$this->operator, $this->targetAttribute, $value]); |
81 | 81 | |
82 | - $closure = function ($value, $attribute) { |
|
82 | + $closure = function($value, $attribute) { |
|
83 | 83 | $this->{$attribute} = $value; |
84 | 84 | return $value; |
85 | 85 | }; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function getClosure(): \Closure |
52 | 52 | { |
53 | - return function ($model, $attribute) { |
|
53 | + return function($model, $attribute) { |
|
54 | 54 | $prefix = $this->prefix ?? strtoupper($attribute) . '_'; |
55 | 55 | $class = $this->targetClass ?? get_class($model); |
56 | 56 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function filterFiles(Model $model, string $attribute) |
48 | 48 | { |
49 | - return $model->{$attribute} = array_values(array_filter((array)$model->{$attribute}, function ($file) { |
|
49 | + return $model->{$attribute} = array_values(array_filter((array)$model->{$attribute}, function($file) { |
|
50 | 50 | return $file instanceof UploadedFile && $file->error != UPLOAD_ERR_NO_FILE; |
51 | 51 | })); |
52 | 52 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | return array_reduce( |
109 | 109 | $files, |
110 | - function (bool $carry, UploadedFile $file) use ($model, $attribute) { |
|
110 | + function(bool $carry, UploadedFile $file) use ($model, $attribute) { |
|
111 | 111 | if (!$carry) { |
112 | 112 | return false; |
113 | 113 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public static function forEach (callable $closure, array $array, ...$args) |
46 | 46 | { |
47 | 47 | return array_map( |
48 | - function ($item) use ($closure, $args) { |
|
48 | + function($item) use ($closure, $args) { |
|
49 | 49 | return static::within($closure, $item, ...$args); |
50 | 50 | }, |
51 | 51 | $array |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public static function sqlCall(string $sqlMethod, ...$params): Expression |
19 | 19 | { |
20 | - $expressions = implode(', ', array_map(function ($expression) { |
|
20 | + $expressions = implode(', ', array_map(function($expression) { |
|
21 | 21 | return "({$expression})"; |
22 | 22 | }, $params)); |
23 | 23 |