@@ -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. |
@@ -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 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $currentTheme = $tenant->getThemeName(); |
| 86 | 86 | $themes = array_filter( |
| 87 | 87 | $this->get('sylius.repository.theme')->findAll(), |
| 88 | - function ($element) use (&$tenantCode, $currentTheme) { |
|
| 88 | + function($element) use (&$tenantCode, $currentTheme) { |
|
| 89 | 89 | if (strpos($element->getName(), ThemeHelper::SUFFIX_SEPARATOR.$tenantCode)) { |
| 90 | 90 | return true; |
| 91 | 91 | } |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Knp\Component\Pager\Pagination\SlidingPagination; |
| 18 | 18 | use SWP\Bundle\CoreBundle\Form\Type\ThemeInstallType; |
| 19 | 19 | use SWP\Bundle\CoreBundle\Form\Type\ThemeUploadType; |
| 20 | -use SWP\Bundle\CoreBundle\Model\Tenant; |
|
| 21 | 20 | use SWP\Bundle\CoreBundle\Model\TenantInterface; |
| 22 | 21 | use SWP\Bundle\CoreBundle\Theme\Helper\ThemeHelper; |
| 23 | 22 | use SWP\Component\Common\Response\ResponseContext; |
@@ -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 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 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 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 Core Bundle. |
@@ -129,7 +129,6 @@ |
||
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * @param string $name |
| 132 | - * @param bool $disabled |
|
| 133 | 132 | * |
| 134 | 133 | * @return OrganizationInterface |
| 135 | 134 | */ |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | { |
| 112 | 112 | if (!$input->getArgument($name)) { |
| 113 | 113 | $question = new Question(sprintf('<question>Please enter %s:</question>', $name)); |
| 114 | - $question->setValidator(function ($argument) use ($name) { |
|
| 114 | + $question->setValidator(function($argument) use ($name) { |
|
| 115 | 115 | if (empty($argument)) { |
| 116 | 116 | throw new \RuntimeException(sprintf('The %s can not be empty', $name)); |
| 117 | 117 | } |