Completed
Push — master ( 4851b3...a37a2c )
by Paweł
36:33
created
src/SWP/Bundle/CoreBundle/Twig/StringyExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $stringyClass = new \ReflectionClass('Stringy\Stringy');
67 67
         $methods = $stringyClass->getMethods(\ReflectionMethod::IS_PUBLIC);
68
-        $names = array_map(function ($value) {
68
+        $names = array_map(function($value) {
69 69
             return $value->getName();
70 70
         }, $methods);
71 71
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 if ($this->environment->getFunction($name)) {
84 84
                     continue;
85 85
                 }
86
-                $this->functions[$name] = new \Twig_SimpleFunction($name, function () use ($name) {
86
+                $this->functions[$name] = new \Twig_SimpleFunction($name, function() use ($name) {
87 87
                     return call_user_func_array(['Stringy\StaticStringy', $name], func_get_args());
88 88
                 });
89 89
             } else {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 if ($this->environment->getFilter($name)) {
92 92
                     continue;
93 93
                 }
94
-                $this->filters[$name] = new \Twig_SimpleFilter($name, function () use ($name) {
94
+                $this->filters[$name] = new \Twig_SimpleFilter($name, function() use ($name) {
95 95
                     return call_user_func_array(['Stringy\StaticStringy', $name], func_get_args());
96 96
                 });
97 97
             }
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 Templates System.
Please login to merge, or discard this patch.
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.
src/SWP/Bundle/ContentBundle/Doctrine/ORM/ArticleRepository.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.
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Provider/ORM/ArticleProvider.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.
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Provider/ODM/PHPCR/ArticleProvider.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.
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Factory/AbstractArticleFactory.php 1 patch
Spacing   +3 added lines, -3 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.
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected function populateLead(PackageInterface $package)
82 82
     {
83
-        return trim($package->getDescription().implode('', array_map(function (ItemInterface $item) {
83
+        return trim($package->getDescription().implode('', array_map(function(ItemInterface $item) {
84 84
             $this->ensureTypeIsAllowed($item->getType());
85 85
 
86 86
             return ' '.$item->getDescription();
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function populateBody(PackageInterface $package)
96 96
     {
97
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
97
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
98 98
             $this->ensureTypeIsAllowed($item->getType());
99 99
 
100 100
             return $item->getBody();
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Factory/ORM/ArticleFactory.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.
Please login to merge, or discard this patch.
src/SWP/Component/Common/Criteria/Criteria.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.
Please login to merge, or discard this patch.