@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'elementTypes' => [ |
| 93 | 93 | 'column' => 'elementType', |
| 94 | 94 | 'name' => Craft::t('app', 'Element Types'), |
| 95 | - 'sources' => \array_map(function (string $elementType) { |
|
| 95 | + 'sources' => \array_map(function(string $elementType) { |
|
| 96 | 96 | return [ |
| 97 | 97 | 'id' => $elementType, |
| 98 | 98 | 'name' => $elementType, |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | try { |
| 147 | 147 | |
| 148 | - $flagsId = (int)(new Query()) |
|
| 148 | + $flagsId = (int) (new Query()) |
|
| 149 | 149 | ->select(['id']) |
| 150 | 150 | ->from([Flags::tableName()]) |
| 151 | 151 | ->where([$sourceColumn => $sourceId]) |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | if (!\is_array($flags)) { |
| 233 | 233 | $flags = \explode(',', \preg_replace('/\s+/', '', $flags)); |
| 234 | 234 | } else { |
| 235 | - $flags = \array_map(function ($flag) { |
|
| 235 | + $flags = \array_map(function($flag) { |
|
| 236 | 236 | return \preg_replace('/\s+/', '', $flag); |
| 237 | 237 | }, $flags); |
| 238 | 238 | } |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | $cacheFlags = []; |
| 404 | 404 | |
| 405 | 405 | foreach ($rows as $row) { |
| 406 | - $cacheIds[] = (int)$row['cacheId']; |
|
| 406 | + $cacheIds[] = (int) $row['cacheId']; |
|
| 407 | 407 | $cacheFlags = \array_merge($cacheFlags, \explode(',', $row['flags'])); |
| 408 | 408 | } |
| 409 | 409 | |