Completed
Push — master ( f332d8...569caa )
by Joachim
114:30 queued 99:30
created
src/Entity/Price.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     {
162 162
         $unitPrice = $this->getUnitPrice();
163 163
 
164
-        if(!$unitPrice) {
164
+        if (!$unitPrice) {
165 165
             return null;
166 166
         }
167 167
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $specialOfferPrice = $this->getSpecialOfferPrice();
176 176
 
177
-        if(!$specialOfferPrice) {
177
+        if (!$specialOfferPrice) {
178 178
             return null;
179 179
         }
180 180
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function getId(): int
190 190
     {
191
-        return (int)$this->id;
191
+        return (int) $this->id;
192 192
     }
193 193
 
194 194
     /**
@@ -278,10 +278,10 @@  discard block
 block discarded – undo
278 278
      */
279 279
     public function getSpecialOfferPrice() : ?Money
280 280
     {
281
-        if(!$this->currency) {
281
+        if (!$this->currency) {
282 282
             return null;
283 283
         }
284
-        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int)$this->specialOfferPrice);
284
+        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int) $this->specialOfferPrice);
285 285
     }
286 286
 
287 287
     /**
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     public function setSpecialOfferPrice(Money $specialOfferPrice) : PriceInterface
292 292
     {
293 293
         // @todo change type from int to string
294
-        $this->specialOfferPrice = (int)$specialOfferPrice->getAmount();
294
+        $this->specialOfferPrice = (int) $specialOfferPrice->getAmount();
295 295
 
296 296
         return $this;
297 297
     }
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
      */
302 302
     public function getUnitPrice() : ?Money
303 303
     {
304
-        if(!$this->currency) {
304
+        if (!$this->currency) {
305 305
             return null;
306 306
         }
307
-        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int)$this->unitPrice);
307
+        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int) $this->unitPrice);
308 308
     }
309 309
 
310 310
     /**
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     public function setUnitPrice(Money $unitPrice) : PriceInterface
315 315
     {
316 316
         // @todo change type from int to string
317
-        $this->unitPrice = (int)$unitPrice->getAmount();
317
+        $this->unitPrice = (int) $unitPrice->getAmount();
318 318
 
319 319
         return $this;
320 320
     }
Please login to merge, or discard this patch.