Completed
Pull Request — 1.5 (#861)
by Rafał
12:38 queued 10s
created
src/SWP/Bundle/TemplatesSystemBundle/DataCollector/ContextDataCollector.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         $this->data = [
49 49
             'currentPage' => $this->context->getCurrentPage() instanceof MetaInterface ?
50
-                $this->getRouteData($this->context->getCurrentPage()->getValues()) :
51
-                [],
50
+                $this->getRouteData($this->context->getCurrentPage()->getValues()) : [],
52 51
             'registeredMeta' => $this->context->getRegisteredMeta(),
53 52
         ];
54 53
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplatesSystemBundle/Form/Type/WidgetType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 
41 41
         $builder->get('visible')
42 42
             ->addModelTransformer(new CallbackTransformer(
43
-                static function ($value) {
43
+                static function($value) {
44 44
                     return $value;
45 45
                 },
46
-                static function ($value) {
46
+                static function($value) {
47 47
                     if (is_bool($value) || in_array($value, ['true', 'false', '1', '0', null], true)) {
48 48
                         return filter_var($value, FILTER_VALIDATE_BOOLEAN);
49 49
                     }
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 
55 55
         $builder->get('parameters')
56 56
             ->addModelTransformer(new CallbackTransformer(
57
-                static function ($value) {
57
+                static function($value) {
58 58
                     if (is_array($value)) {
59 59
                         return json_encode($value);
60 60
                     }
61 61
 
62 62
                     return $value;
63 63
                 },
64
-                static function ($value) {
64
+                static function($value) {
65 65
                     if (is_string($value)) {
66 66
                         return json_decode($value, true);
67 67
                     }
Please login to merge, or discard this patch.
SWP/Bundle/CoreBundle/Controller/RelatedArticleOrganizationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
     private function getRelated(PackageInterface $package): RelatedArticleList
76 76
     {
77
-        $relatedItemsGroups = $package->getItems()->filter(static function ($group) {
77
+        $relatedItemsGroups = $package->getItems()->filter(static function($group) {
78 78
             return ItemInterface::TYPE_TEXT === $group->getType();
79 79
         });
80 80
 
Please login to merge, or discard this patch.
SWP/Bundle/ContentBundle/EventListener/ProcessRelatedArticlesListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         $this->removeOldRelatedArticles($article);
51 51
 
52
-        $relatedItemsGroups = $package->getItems()->filter(static function ($item) {
52
+        $relatedItemsGroups = $package->getItems()->filter(static function($item) {
53 53
             return ItemInterface::TYPE_TEXT === $item->getType();
54 54
         });
55 55
 
Please login to merge, or discard this patch.