Completed
Push — master ( 7a069b...4da1f4 )
by Paweł
11s
created
src/SWP/Bundle/CoreBundle/Theme/Installer/TenantAwareThemeInstaller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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.
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         if (null === $sourceDir || null === $themeDir) {
74 74
             $themes = array_filter(
75 75
                 $this->themeLoader->load(),
76
-                function ($element) use (&$themeName) {
76
+                function($element) use (&$themeName) {
77 77
                     return $element->getName() === $themeName;
78 78
                 }
79 79
             );
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Configuration/ThemeConfiguration.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $routeNodeDefinition = $routesNodeDefinition->prototype('array');
142 142
         $routeNodeDefinition
143 143
             ->validate()
144
-            ->ifTrue(function ($route) {
144
+            ->ifTrue(function($route) {
145 145
                 return [] === $route;
146 146
             })
147 147
             ->thenInvalid('Route cannot be empty!')
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $menuNodeDefinition = $menusNodeDefinition->prototype('array');
170 170
         $menuNodeDefinition
171 171
             ->validate()
172
-            ->ifTrue(function ($menu) {
172
+            ->ifTrue(function($menu) {
173 173
                 return [] === $menu;
174 174
             })
175 175
             ->thenInvalid('Menu cannot be empty!')
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         $childrenNodeDefinition = $childrensNodeDefinition->prototype('array');
188 188
         $childrenNodeDefinition
189 189
             ->validate()
190
-            ->ifTrue(function ($menu) {
190
+            ->ifTrue(function($menu) {
191 191
                 return [] === $menu;
192 192
             })
193 193
             ->thenInvalid('Menu cannot be empty!')
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $childrensChildrenNodeDefinition = $childrensChildrensNodeDefinition->prototype('array');
206 206
         $childrensChildrenNodeDefinition
207 207
             ->validate()
208
-            ->ifTrue(function ($menu) {
208
+            ->ifTrue(function($menu) {
209 209
                 return [] === $menu;
210 210
             })
211 211
             ->thenInvalid('Menu cannot be empty!')
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         $containerNodeDefinition = $containersNodeDefinition->prototype('array');
231 231
         $containerNodeDefinition
232 232
             ->validate()
233
-            ->ifTrue(function ($widget) {
233
+            ->ifTrue(function($widget) {
234 234
                 return [] === $widget;
235 235
             })
236 236
             ->thenInvalid('Widget cannot be empty!')
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         $containerNodeDefinition = $containersNodeDefinition->prototype('array');
254 254
         $containerNodeDefinition
255 255
             ->validate()
256
-            ->ifTrue(function ($widget) {
256
+            ->ifTrue(function($widget) {
257 257
                 return [] === $widget;
258 258
             })
259 259
             ->thenInvalid('Content List cannot be empty!')
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         $widgetNodeDefinition = $widgetsNodeDefinition->prototype('array');
278 278
         $widgetNodeDefinition
279 279
             ->validate()
280
-            ->ifTrue(function ($widget) {
280
+            ->ifTrue(function($widget) {
281 281
                 return [] === $widget;
282 282
             })
283 283
             ->thenInvalid('Widget cannot be empty!')
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 
308 308
         $screenshotNodeDefinition
309 309
             ->validate()
310
-            ->ifTrue(function ($screenshot) {
310
+            ->ifTrue(function($screenshot) {
311 311
                 return [] === $screenshot || ['path' => ''] === $screenshot;
312 312
             })
313 313
             ->thenInvalid('Screenshot cannot be empty!')
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $screenshotNodeDefinition
316 316
             ->beforeNormalization()
317 317
             ->ifString()
318
-            ->then(function ($value) {
318
+            ->then(function($value) {
319 319
                 return ['path' => $value];
320 320
             })
321 321
         ;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
         $authorNodeDefinition = $authorsNodeDefinition->prototype('array');
342 342
         $authorNodeDefinition
343 343
             ->validate()
344
-            ->ifTrue(function ($author) {
344
+            ->ifTrue(function($author) {
345 345
                 return [] === $author;
346 346
             })
347 347
             ->thenInvalid('Author cannot be empty!')
Please login to merge, or discard this patch.