Completed
Push — master ( 6469d9...c2139f )
by Paweł
61:46
created
src/SWP/Component/Bridge/Validator/JsonValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             return true;
52 52
         }
53 53
 
54
-        $this->logger->error(implode(', ', array_map(function ($error) {
54
+        $this->logger->error(implode(', ', array_map(function($error) {
55 55
             return sprintf('"%s" %s', $error['property'], $error['message']);
56 56
         }, $validator->getErrors())));
57 57
 
Please login to merge, or discard this patch.
SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadCollectionRouteArticles.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@  discard block
 block discarded – undo
46 46
         $manager->flush();
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $env
51
+     */
49 52
     public function loadRoutes($env, ObjectManager $manager)
50 53
     {
51 54
         $routes = [
@@ -95,6 +98,10 @@  discard block
 block discarded – undo
95 98
         $manager->flush();
96 99
     }
97 100
 
101
+    /**
102
+     * @param string $env
103
+     * @param ObjectManager $manager
104
+     */
98 105
     public function setRoutesContent($env, $manager)
99 106
     {
100 107
         $routes = [
@@ -118,6 +125,10 @@  discard block
 block discarded – undo
118 125
         }
119 126
     }
120 127
 
128
+    /**
129
+     * @param string $env
130
+     * @param ObjectManager $manager
131
+     */
121 132
     public function loadArticles($env, $manager)
122 133
     {
123 134
         $articles = [
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/StaticThemeAssetsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @param $filePath
66
+     * @param string $filePath
67 67
      *
68 68
      * @return Response
69 69
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Factory/ORM/MediaFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 
19 19
 use SWP\Bundle\ContentBundle\Doctrine\ImageRepositoryInterface;
20 20
 use SWP\Bundle\ContentBundle\Model\ArticleMedia;
21
-use SWP\Bundle\ContentBundle\Model\File;
22 21
 use SWP\Bundle\ContentBundle\Model\Image;
23 22
 use SWP\Bundle\ContentBundle\Model\ImageRendition;
24 23
 use SWP\Bundle\ContentBundle\Factory\MediaFactoryInterface;
Please login to merge, or discard this 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 Content Bundle.
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Gimme/Context/Context.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     }
296 296
 
297 297
     /**
298
-     * @param array $keys
298
+     * @param string[] $keys
299 299
      *
300 300
      * @return string
301 301
      */
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * @param string $id
329 329
      *
330
-     * @return null|true
330
+     * @return null|boolean
331 331
      */
332 332
     public function restoreTemporaryUnset($id)
333 333
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Provider/ArticleProviderInterface.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 Content 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.
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $items = $this->filterTextItems($package->getItems());
86 86
 
87 87
             $map = $items->map(
88
-                function (ItemInterface $item) {
88
+                function(ItemInterface $item) {
89 89
                     return ' '.$item->getDescription();
90 90
                 }
91 91
             );
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $items = $this->filterTextItems($package->getItems());
107 107
 
108
-        $authors = array_filter(array_values(array_map(function (ItemInterface $item) {
108
+        $authors = array_filter(array_values(array_map(function(ItemInterface $item) {
109 109
             $metadata = $item->getMetadata();
110 110
 
111 111
             return $metadata['byline'];
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     private function filterTextItems(Collection $items)
122 122
     {
123 123
         return $items->filter(
124
-            function (ItemInterface $item) {
124
+            function(ItemInterface $item) {
125 125
                 $this->ensureTypeIsAllowed($item->getType());
126 126
 
127 127
                 return ItemInterface::TYPE_TEXT === $item->getType();
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     protected function populateBody(PackageInterface $package)
138 138
     {
139
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
139
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
140 140
             $this->ensureTypeIsAllowed($item->getType());
141 141
 
142 142
             return $item->getBody();
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplatesSystemBundle/DependencyInjection/Configuration.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 Template Engine Bundle.
Please login to merge, or discard this patch.
SWP/Bundle/TemplatesSystemBundle/Repository/ContainerWidgetRepository.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 Templates System Bundle.
Please login to merge, or discard this patch.