Completed
Push — master ( fd59c6...f2565d )
by Paweł
18s
created
src/SWP/Component/Rule/Applicator/AbstractRuleApplicator.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 Rule Component.
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Rule/Processor/TenantAwareRuleProcessor.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.
SWP/Bundle/CoreBundle/Security/Authenticator/PreviewTokenAuthenticator.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/ContentBundle/Hydrator/ArticleHydrator.php 1 patch
Spacing   +5 added lines, -5 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 Content Bundle.
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $items = $this->filterTextItems($package->getItems());
88 88
 
89 89
             $map = $items->map(
90
-                function (ItemInterface $item) {
90
+                function(ItemInterface $item) {
91 91
                     return ' '.$item->getDescription();
92 92
                 }
93 93
             );
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $items = $this->filterTextItems($package->getItems());
109 109
 
110
-        $authors = array_filter(array_values(array_map(function (ItemInterface $item) {
110
+        $authors = array_filter(array_values(array_map(function(ItemInterface $item) {
111 111
             $metadata = $item->getMetadata();
112 112
 
113 113
             return $metadata['byline'];
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     private function filterTextItems(Collection $items)
124 124
     {
125 125
         return $items->filter(
126
-            function (ItemInterface $item) {
126
+            function(ItemInterface $item) {
127 127
                 $this->ensureTypeIsAllowed($item->getType());
128 128
 
129 129
                 return ItemInterface::TYPE_TEXT === $item->getType();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     private function populateBody(PackageInterface $package)
140 140
     {
141
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
141
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
142 142
             $this->ensureTypeIsAllowed($item->getType());
143 143
 
144 144
             return $item->getBody();
Please login to merge, or discard this patch.
src/SWP/Bundle/SettingsBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 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 Settings Bundle.
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                             ->scalarNode('value')
77 77
                                 ->beforeNormalization()
78 78
                                 ->ifArray()
79
-                                ->then(function ($value) {
79
+                                ->then(function($value) {
80 80
                                     return json_encode($value);
81 81
                                 })
82 82
                                 ->end()
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                             ->scalarNode('type')
86 86
                                 ->defaultValue('string')
87 87
                                 ->validate()
88
-                                    ->always(function ($v) {
88
+                                    ->always(function($v) {
89 89
                                         if (!in_array($v, ['string', 'array', 'boolean'])) {
90 90
                                             throw new InvalidTypeException();
91 91
                                         }
Please login to merge, or discard this patch.
src/SWP/Bundle/UserBundle/Controller/ProfileController.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 User Bundle.
Please login to merge, or discard this patch.
src/SWP/Bundle/UserBundle/Form/Type/ProfileFormType.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 User Bundle.
Please login to merge, or discard this patch.
src/SWP/Bundle/ElasticSearchBundle/Criteria/Order.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 ElasticSearch Bundle.
Please login to merge, or discard this patch.
src/SWP/Bundle/ElasticSearchBundle/SWPElasticSearchBundle.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 ElasticSearch Bundle.
Please login to merge, or discard this patch.