Completed
Pull Request — master (#777)
by Rafał
19:32
created
SWP/Bundle/ContentBundle/EventListener/ProcessArticleSlideshowsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $package = $event->getPackage();
49 49
         $article = $event->getArticle();
50 50
 
51
-        $groups = $package->getGroups()->filter(function ($group) {
51
+        $groups = $package->getGroups()->filter(function($group) {
52 52
             return GroupInterface::TYPE_RELATED !== $group->getType();
53 53
         });
54 54
 
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->getGroups()->filter(function ($group) {
52
+        $relatedItemsGroups = $package->getGroups()->filter(function($group) {
53 53
             return GroupInterface::TYPE_RELATED === $group->getType();
54 54
         });
55 55
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Matcher/RulesMatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 
144 144
         $ids = array_column($rules['tenants'], 'tenant');
145 145
         $ids = array_unique($ids);
146
-        $tenants = array_filter($rules['tenants'], function ($key, $value) use ($ids) {
146
+        $tenants = array_filter($rules['tenants'], function($key, $value) use ($ids) {
147 147
             return array_key_exists($value, $ids);
148 148
         }, ARRAY_FILTER_USE_BOTH);
149 149
 
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Twig/Node/ContainerNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param \Twig_Node_Expression|null $parameters
27 27
      * @param \Twig_Node                 $body
28 28
      * @param null|string                $lineno
29
-     * @param null                       $tag
29
+     * @param string                       $tag
30 30
      */
31 31
     public function __construct(\Twig_Node $name, \Twig_Node_Expression $parameters = null, \Twig_Node $body, $lineno, $tag = null)
32 32
     {
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Twig/Node/GimmeListNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param \Twig_Node|null                   $else
37 37
      * @param \Twig_Node                        $body
38 38
      * @param int                               $lineno
39
-     * @param null                              $tag
39
+     * @param string                              $tag
40 40
      */
41 41
     public function __construct(
42 42
         \Twig_Node $variable,
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Twig/Node/GimmeNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param \Twig_Node_Expression|null $ignoreContext
30 30
      * @param \Twig_Node                 $body
31 31
      * @param int                        $lineno
32
-     * @param null                       $tag
32
+     * @param string                       $tag
33 33
      */
34 34
     public function __construct(
35 35
         \Twig_Node $annotation,
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Controller/RouteController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@
 block discarded – undo
194 194
         return $route;
195 195
     }
196 196
 
197
+    /**
198
+     * @param string $name
199
+     */
197 200
     private function ensureRouteExists($name)
198 201
     {
199 202
         if (null !== $this->get('swp.repository.route')->findOneByName($name)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
 
149 149
             return new SingleResourceResponse($form, new ResponseContext(400));
150 150
         } catch (\Throwable $e) {
151
-            dump($e);die;
151
+            dump($e); die;
152 152
         }
153 153
     }
154 154
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/ContainerController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -234,6 +234,9 @@
 block discarded – undo
234 234
         return new SingleResourceResponse($container, new ResponseContext(201));
235 235
     }
236 236
 
237
+    /**
238
+     * @param string $uuid
239
+     */
237 240
     private function getContainerForUpdate($uuid)
238 241
     {
239 242
         $revisionContext = $this->get('swp_revision.context.revision');
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/ContentListController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -268,6 +268,9 @@
 block discarded – undo
268 268
         return $list;
269 269
     }
270 270
 
271
+    /**
272
+     * @param null|string $name
273
+     */
271 274
     private function ensureContentListExists($name)
272 275
     {
273 276
         if (null !== $this->get('swp.repository.content_list')->findOneByName($name)) {
Please login to merge, or discard this patch.