Completed
Push — master ( 4da1f4...8b580e )
by Paweł
08:27
created
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/Loader/ArticleLoader.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/Controller/ContentPushController.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/Doctrine/ORM/ArticleRepository.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace SWP\Bundle\ContentBundle\Doctrine\ORM;
18 18
 
19 19
 use Doctrine\ORM\QueryBuilder;
20
-use Elastica\Query;
21 20
 use SWP\Bundle\ContentBundle\Model\ArticleSourceReference;
22 21
 use SWP\Component\Common\Criteria\Criteria;
23 22
 use SWP\Bundle\ContentBundle\Doctrine\ArticleRepositoryInterface;
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Model/Article.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/FixturesBundle/DataFixtures/ORM/LoadArticlesData.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -41,6 +41,10 @@  discard block
 block discarded – undo
41 41
         $manager->flush();
42 42
     }
43 43
 
44
+    /**
45
+     * @param string $env
46
+     * @param ObjectManager $manager
47
+     */
44 48
     public function loadRoutes($env, $manager)
45 49
     {
46 50
         $routes = [
@@ -195,6 +199,7 @@  discard block
 block discarded – undo
195 199
     /**
196 200
      * Sets articles manually (not via Alice) for test env due to fatal error:
197 201
      * Method PHPCRProxies\__CG__\Doctrine\ODM\PHPCR\Document\Generic::__toString() must not throw an exception.
202
+     * @param string $env
198 203
      */
199 204
     public function loadArticles($env, ObjectManager $manager)
200 205
     {
@@ -446,6 +451,10 @@  discard block
 block discarded – undo
446 451
         ];
447 452
     }
448 453
 
454
+    /**
455
+     * @param string $fakeImage
456
+     * @param string $targetFile
457
+     */
449 458
     private function cropAndResizeImage($fakeImage, array $rendition, $targetFile)
450 459
     {
451 460
         $image = imagecreatefromjpeg($fakeImage);
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Rule/Applicator/PackageRuleApplicator.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/CoreBundle/EventListener/UpdatedPackageListener.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.