Completed
Push — master ( db30e2...3405a3 )
by Paweł
08:38
created
src/SWP/Bundle/CoreBundle/Model/Article.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Loader/TenantAwareThemeLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/ThemesController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Uploader/OrganizationAwareThemeUploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Repository/ReloadableInMemoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Generator/FakeArticlesGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Generator/ThemeRoutesGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Model/OrganizationInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateOrganizationCommand.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,6 @@
 block discarded – undo
129 129
 
130 130
     /**
131 131
      * @param string $name
132
-     * @param bool   $disabled
133 132
      *
134 133
      * @return OrganizationInterface
135 134
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.