Completed
Pull Request — master (#911)
by Paweł
09:35
created
src/SWP/Bundle/ContentBundle/EventListener/ProcessArticleMediaListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         }
44 44
 
45 45
         $items = $package->getItems()->filter(
46
-            static function ($entry) use ($guids) {
46
+            static function($entry) use ($guids) {
47 47
                 return !in_array($entry->getGuid(), $guids, true);
48 48
             }
49 49
         );
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentListBundle/Form/Type/ContentListType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@
 block discarded – undo
64 64
 
65 65
         $builder->get('filters')
66 66
             ->addModelTransformer(new CallbackTransformer(
67
-                static function ($value) {
67
+                static function($value) {
68 68
                     return json_encode($value);
69 69
                 },
70
-                static function ($value) {
70
+                static function($value) {
71 71
                     if (is_array($value)) {
72 72
                         return $value;
73 73
                     }
Please login to merge, or discard this patch.
SWP/Bundle/CoreBundle/Theme/Locator/TenantS3ThemesRecursiveFileLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         foreach ($this->paths as $path) {
38 38
             $files = $this->filesystem->listContents($path, true);
39 39
             try {
40
-                $filteredFiles = \array_filter($files, static function ($value) use ($name) {
40
+                $filteredFiles = \array_filter($files, static function($value) use ($name) {
41 41
                     return 'file' === $value['type'] && $value['filename'].'.'.$value['extension'] === $name;
42 42
                 });
43 43
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/StaticThemeAssetsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
     {
159 159
         $themes = array_filter(
160 160
             $loadedThemes,
161
-            static function ($element) use (&$themeName) {
161
+            static function($element) use (&$themeName) {
162 162
                 return $element->getName() === $themeName;
163 163
             }
164 164
         );
Please login to merge, or discard this patch.