Completed
Push — master ( b4d9b6...1a9422 )
by Paweł
07:00
created
src/SWP/Bundle/UserBundle/Model/User.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/SettingsBundle/EventSubscriber/ScopeContextSubscriber.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 Settings 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/BridgeBundle/Serializer/ObjectConstructor.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 Bridge Bundle.
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentListBundle/Form/Type/ContentListItemsType.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 List Bundle.
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentListBundle/Form/Type/ContentListItemPositionType.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 List Bundle.
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplatesSystemBundle/Form/Type/WidgetType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
 
40 40
         $builder->get('visible')
41 41
             ->addModelTransformer(new CallbackTransformer(
42
-                function ($value) {
42
+                function($value) {
43 43
                     return $value;
44 44
                 },
45
-                function ($value) {
45
+                function($value) {
46 46
                     if (is_bool($value) || in_array($value, ['true', 'false', '1', '0', null])) {
47 47
                         return filter_var($value, FILTER_VALIDATE_BOOLEAN);
48 48
                     }
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
 
54 54
         $builder->get('parameters')
55 55
             ->addModelTransformer(new CallbackTransformer(
56
-                function ($value) {
56
+                function($value) {
57 57
                     if (is_array($value) && !empty($value)) {
58 58
                         return json_encode($value);
59 59
                     }
60 60
 
61 61
                     return $value;
62 62
                 },
63
-                function ($value) {
63
+                function($value) {
64 64
                     if (is_string($value)) {
65 65
                         return json_decode($value, true);
66 66
                     }
Please login to merge, or discard this patch.
Bundle/CoreBundle/EventSubscriber/ProcessOrganizationRulesSubscriber.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/Factory/PublishDestinationFactory.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.