@@ -468,7 +468,7 @@ |
||
468 | 468 | } |
469 | 469 | } |
470 | 470 | // sort providers |
471 | - uasort($providers, function ($a, $b) { |
|
471 | + uasort($providers, function($a, $b) { |
|
472 | 472 | return $b['sorting'] - $a['sorting']; |
473 | 473 | }); |
474 | 474 | $this->loginProviders = $providers; |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | { |
653 | 653 | return preg_replace_callback( |
654 | 654 | '/(?:[^' . self::UNRESERVED_CHARLIST . ':@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/', |
655 | - function ($matches) { |
|
655 | + function($matches) { |
|
656 | 656 | return rawurlencode($matches[0]); |
657 | 657 | }, |
658 | 658 | $path |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | { |
731 | 731 | return preg_replace_callback( |
732 | 732 | '/(?:[^' . self::UNRESERVED_CHARLIST . self::SUBDELIMITER_CHARLIST . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/', |
733 | - function ($matches) { |
|
733 | + function($matches) { |
|
734 | 734 | return rawurlencode($matches[0]); |
735 | 735 | }, |
736 | 736 | $value |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | // check for required options being set |
67 | 67 | array_walk( |
68 | 68 | $this->supportedOptions, |
69 | - function ($supportedOptionData, $supportedOptionName, $options) { |
|
69 | + function($supportedOptionData, $supportedOptionName, $options) { |
|
70 | 70 | if (isset($supportedOptionData[3]) && $supportedOptionData[3] === true && !array_key_exists($supportedOptionName, $options)) { |
71 | 71 | throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1379981891); |
72 | 72 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | // merge with default values |
78 | 78 | $this->options = array_merge( |
79 | 79 | array_map( |
80 | - function ($value) { |
|
80 | + function($value) { |
|
81 | 81 | return $value[0]; |
82 | 82 | }, |
83 | 83 | $this->supportedOptions |
@@ -210,7 +210,7 @@ |
||
210 | 210 | if ($sortingProperty !== '' && count($this->files) > 1) { |
211 | 211 | @usort( |
212 | 212 | $this->files, |
213 | - function ( |
|
213 | + function( |
|
214 | 214 | FileInterface $a, |
215 | 215 | FileInterface $b |
216 | 216 | ) use ($sortingProperty) { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | implode( |
257 | 257 | ', ', |
258 | 258 | array_map( |
259 | - function ($column) use ($connection) { |
|
259 | + function($column) use ($connection) { |
|
260 | 260 | return $connection->quoteIdentifier($column); |
261 | 261 | }, |
262 | 262 | $this->columns |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | implode( |
273 | 273 | '), (', |
274 | 274 | array_map( |
275 | - function (array $valueSet) { |
|
275 | + function(array $valueSet) { |
|
276 | 276 | return implode(', ', $valueSet); |
277 | 277 | }, |
278 | 278 | $this->values |
@@ -228,7 +228,7 @@ |
||
228 | 228 | } |
229 | 229 | } |
230 | 230 | |
231 | - uasort($allowedStages, function (StageRecord $first, StageRecord $second) { |
|
231 | + uasort($allowedStages, function(StageRecord $first, StageRecord $second) { |
|
232 | 232 | return $first->determineOrder($second); |
233 | 233 | }); |
234 | 234 | return $this->prepareStagesArray($allowedStages); |
@@ -166,7 +166,7 @@ |
||
166 | 166 | $connection = $connectionPool->getConnectionByName($connectionName); |
167 | 167 | $tablesOnConnection = array_keys(array_filter( |
168 | 168 | $tableMap, |
169 | - function ($value) use ($connectionName) { |
|
169 | + function($value) use ($connectionName) { |
|
170 | 170 | return $value === $connectionName; |
171 | 171 | } |
172 | 172 | )); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | if (!is_array($pageIdsToClear)) { |
68 | 68 | $pageIdsToClear = [(int)$pageIdsToClear]; |
69 | 69 | } |
70 | - $tags = array_map(function ($item) { |
|
70 | + $tags = array_map(function($item) { |
|
71 | 71 | return 'pageId_' . $item; |
72 | 72 | }, $pageIdsToClear); |
73 | 73 | $this->cacheManager->flushCachesInGroupByTags('pages', $tags); |
@@ -271,7 +271,7 @@ |
||
271 | 271 | $fieldPaths[] = [$firstLevelFieldName]; |
272 | 272 | } else { |
273 | 273 | $newFieldPaths = $this->calculateFieldPaths($fieldInformation['error'], $firstLevelFieldName); |
274 | - array_walk($newFieldPaths, function (&$value, $key) { |
|
274 | + array_walk($newFieldPaths, function(&$value, $key) { |
|
275 | 275 | $value = explode('/', $value); |
276 | 276 | }); |
277 | 277 | $fieldPaths = array_merge($fieldPaths, $newFieldPaths); |