Completed
Push — master ( 6f43b2...7aaf7f )
by Joachim
23:15 queued 08:14
created
src/Entity/Price.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function getId(): int
143 143
     {
144
-        return (int)$this->id;
144
+        return (int) $this->id;
145 145
     }
146 146
 
147 147
     /**
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function getSpecialOfferPrice() : ?Money
233 233
     {
234
-        if(!$this->currency) {
234
+        if (!$this->currency) {
235 235
             return null;
236 236
         }
237
-        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int)$this->specialOfferPrice);
237
+        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int) $this->specialOfferPrice);
238 238
     }
239 239
 
240 240
     /**
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     public function setSpecialOfferPrice(Money $specialOfferPrice) : PriceInterface
245 245
     {
246 246
         // @todo change type from int to string
247
-        $this->specialOfferPrice = (int)$specialOfferPrice->getAmount();
247
+        $this->specialOfferPrice = (int) $specialOfferPrice->getAmount();
248 248
 
249 249
         return $this;
250 250
     }
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
      */
255 255
     public function getUnitPrice() : ?Money
256 256
     {
257
-        if(!$this->currency) {
257
+        if (!$this->currency) {
258 258
             return null;
259 259
         }
260
-        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int)$this->unitPrice);
260
+        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int) $this->unitPrice);
261 261
     }
262 262
 
263 263
     /**
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     public function setUnitPrice(Money $unitPrice) : PriceInterface
268 268
     {
269 269
         // @todo change type from int to string
270
-        $this->unitPrice = (int)$unitPrice->getAmount();
270
+        $this->unitPrice = (int) $unitPrice->getAmount();
271 271
 
272 272
         return $this;
273 273
     }
Please login to merge, or discard this patch.