@@ -39,24 +39,24 @@ |
||
| 39 | 39 | |
| 40 | 40 | $builder->get('visible') |
| 41 | 41 | ->addModelTransformer(new CallbackTransformer( |
| 42 | - function ($value) { |
|
| 42 | + function($value) { |
|
| 43 | 43 | return $value; |
| 44 | 44 | }, |
| 45 | - function ($value) { |
|
| 45 | + function($value) { |
|
| 46 | 46 | return filter_var($value, FILTER_VALIDATE_BOOLEAN); |
| 47 | 47 | } |
| 48 | 48 | )); |
| 49 | 49 | |
| 50 | 50 | $builder->get('parameters') |
| 51 | 51 | ->addModelTransformer(new CallbackTransformer( |
| 52 | - function ($value) { |
|
| 52 | + function($value) { |
|
| 53 | 53 | if (is_array($value) && !empty($value)) { |
| 54 | 54 | return json_encode($value); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | return $value; |
| 58 | 58 | }, |
| 59 | - function ($value) { |
|
| 59 | + function($value) { |
|
| 60 | 60 | if (is_string($value)) { |
| 61 | 61 | return json_decode($value, true); |
| 62 | 62 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Bridge Bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Bridge Component. |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | { |
| 162 | 162 | $tenantCode = substr($themeName, strpos($themeName, '@') + 1); |
| 163 | 163 | |
| 164 | - return array_map(function ($parentName) use ($themeName, $existingThemes, $tenantCode) { |
|
| 164 | + return array_map(function($parentName) use ($themeName, $existingThemes, $tenantCode) { |
|
| 165 | 165 | $parentName .= '@'.$tenantCode; |
| 166 | 166 | if (!isset($existingThemes[$parentName])) { |
| 167 | 167 | throw new ThemeLoadingFailedException(sprintf( |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays) |
| 184 | 184 | { |
| 185 | - return array_map(function (array $authorArray) { |
|
| 185 | + return array_map(function(array $authorArray) { |
|
| 186 | 186 | return $this->themeAuthorFactory->createFromArray($authorArray); |
| 187 | 187 | }, $authorsArrays); |
| 188 | 188 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays) |
| 196 | 196 | { |
| 197 | - return array_map(function (array $screenshotArray) { |
|
| 197 | + return array_map(function(array $screenshotArray) { |
|
| 198 | 198 | return $this->themeScreenshotFactory->createFromArray($screenshotArray); |
| 199 | 199 | }, $screenshotsArrays); |
| 200 | 200 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Superdesk Web Publisher Bridge Bundle. |