Completed
Push — dependabot/composer/doctrine/d... ( 78aff8...3fb010 )
by
unknown
30:25 queued 19:09
created
src/SWP/Bundle/ContentBundle/Model/KeywordsAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function getKeywordsNames(): array
55 55
     {
56
-        return array_map(function ($keyword) {
56
+        return array_map(function($keyword) {
57 57
             return $keyword->getName();
58 58
         }, $this->keywords->toArray());
59 59
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Routing/MediaRouter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -71,6 +71,9 @@
 block discarded – undo
71 71
         return 'Route for media '.$name->getValues()->getId().' not found';
72 72
     }
73 73
 
74
+    /**
75
+     * @param string $name
76
+     */
74 77
     private function getItem($name)
75 78
     {
76 79
         $values = $name->getValues();
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/EventListener/ProcessArticleMediaListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         }
42 42
 
43 43
         $items = $package->getItems()->filter(
44
-            function ($entry) use ($guids) {
44
+            function($entry) use ($guids) {
45 45
                 return !\in_array($entry->getGuid(), $guids, true);
46 46
             }
47 47
         );
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
             if (null !== ($packageItems = $packageItem->getItems()) && 0 !== $packageItems->count()) {
59 59
                 $packageItems = $packageItem->getItems()->filter(
60
-                    function ($entry) use ($guids) {
60
+                    function($entry) use ($guids) {
61 61
                         return !\in_array($entry->getGuid(), $guids, true);
62 62
                     }
63 63
                 );
Please login to merge, or discard this patch.
src/SWP/Component/Bridge/Model/BaseContent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 
385 385
     private function mapNames(array $values): array
386 386
     {
387
-        return array_map(function ($subject) {
387
+        return array_map(function($subject) {
388 388
             if (\is_array($subject) && \array_key_exists('name', $subject)) {
389 389
                 return $subject['name'];
390 390
             }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 
396 396
     private function mapCodes(array $values): array
397 397
     {
398
-        return array_map(function ($subject) {
398
+        return array_map(function($subject) {
399 399
             if (\is_array($subject) && \array_key_exists('code', $subject)) {
400 400
                 return $subject['code'];
401 401
             }
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 
407 407
     private function mapSchemes(array $values): array
408 408
     {
409
-        return array_map(function ($subject) {
409
+        return array_map(function($subject) {
410 410
             if (\is_array($subject) && \array_key_exists('scheme', $subject)) {
411 411
                 return $subject['scheme'];
412 412
             }
Please login to merge, or discard this patch.
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/Bundle/ContentBundle/Controller/RouteController.php 1 patch
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.
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.