Completed
Push — scalar-types/resource ( 4814fd...1dc300 )
by Kamil
22:38
created
src/Sylius/Component/Product/Model/Product.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @param string $code
102 102
      */
103
-    public function setCode(?string $code): void
103
+    public function setCode(?string $code) : void
104 104
     {
105 105
         $this->code = $code;
106 106
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * {@inheritdoc}
134 134
      */
135
-    public function setSlug(?string $slug): void
135
+    public function setSlug(?string $slug) : void
136 136
     {
137 137
         $this->getTranslation()->setSlug($slug);
138 138
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductTranslation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * {@inheritdoc}
87 87
      */
88
-    public function setSlug(?string $slug): void
88
+    public function setSlug(?string $slug) : void
89 89
     {
90 90
         $this->slug = $slug;
91 91
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderSequence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Core\Model;
15 15
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * {@inheritdoc}
38 38
      */
39
-    public function setVersion(?int $version): void
39
+    public function setVersion(?int $version) : void
40 40
     {
41 41
         $this->version = $version;
42 42
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Core\Model;
15 15
 
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
             $string .= '(';
110 110
 
111 111
             foreach ($this->getOptionValues() as $option) {
112
-                $string .= $option->getOption()->getName().': '.$option->getValue().', ';
112
+                $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', ';
113 113
             }
114 114
 
115
-            $string = substr($string, 0, -2).')';
115
+            $string = substr($string, 0, -2) . ')';
116 116
         }
117 117
 
118 118
         return $string;
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * {@inheritdoc}
131 131
      */
132
-    public function setVersion(?int $version): void
132
+    public function setVersion(?int $version) : void
133 133
     {
134 134
         $this->version = $version;
135 135
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/Taxon.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Taxonomy\Model;
15 15
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * {@inheritdoc}
108 108
      */
109
-    public function setCode(?string $code): void
109
+    public function setCode(?string $code) : void
110 110
     {
111 111
         $this->code = $code;
112 112
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     /**
242 242
      * {@inheritdoc}
243 243
      */
244
-    public function setSlug(?string $slug): void
244
+    public function setSlug(?string $slug) : void
245 245
     {
246 246
         $this->getTranslation()->setSlug($slug);
247 247
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonTranslation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Taxonomy\Model;
15 15
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * {@inheritdoc}
85 85
      */
86
-    public function setSlug(?string $slug): void
86
+    public function setSlug(?string $slug) : void
87 87
     {
88 88
         $this->slug = $slug;
89 89
     }
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/Doctrine/ODM/MongoDB/DocumentRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB;
15 15
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *
80 80
      * @return array
81 81
      */
82
-    public function findBy(array $criteria, ?array $sorting = null, $limit = null, $offset = null)
82
+    public function findBy(array $criteria, ? array $sorting = null, $limit = null, $offset = null)
83 83
     {
84 84
         $queryBuilder = $this->getCollectionQueryBuilder();
85 85
 
Please login to merge, or discard this patch.