Completed
Push — master ( eccdf8...7efe73 )
by Joachim
12:36
created
src/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,5 +38,5 @@
 block discarded – undo
38 38
         $obj = json_decode(json_encode($obj), true);
39 39
     }
40 40
 
41
-    return (array)$obj;
41
+    return (array) $obj;
42 42
 }
Please login to merge, or discard this patch.
src/functions_include.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 // Don't redefine the functions if included multiple times.
3 3
 if (!function_exists('Loevgaard\DandomainFoundation\createMoney')) {
4
-    require_once __DIR__ . '/functions.php';
4
+    require_once __DIR__.'/functions.php';
5 5
 }
Please login to merge, or discard this patch.
src/Entity/ShippingMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
         $this
79 79
             ->setExternalId($data['id'])
80
-            ->setFee(DandomainFoundation\createMoney((string)$currency, $data['fee']))
80
+            ->setFee(DandomainFoundation\createMoney((string) $currency, $data['fee']))
81 81
             ->setFeeInclVat($data['feeInclVat'])
82 82
             ->setName($data['name'])
83 83
         ;
Please login to merge, or discard this patch.
src/Entity/Invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     public function getId(): int
96 96
     {
97
-        return (int)$this->id;
97
+        return (int) $this->id;
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/Entity/Delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
      */
161 161
     public function getId() : int
162 162
     {
163
-        return (int)$this->id;
163
+        return (int) $this->id;
164 164
     }
165 165
 
166 166
     /**
Please login to merge, or discard this patch.
src/Entity/PaymentMethod.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $this
79 79
             ->setExternalId($data['id'])
80
-            ->setFee(DandomainFoundation\createMoney((string)$currency, $data['fee']))
80
+            ->setFee(DandomainFoundation\createMoney((string) $currency, $data['fee']))
81 81
             ->setFeeInclVat($data['feeInclVat'])
82 82
             ->setName($data['name'])
83 83
         ;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getId(): int
92 92
     {
93
-        return (int)$this->id;
93
+        return (int) $this->id;
94 94
     }
95 95
 
96 96
     /**
Please login to merge, or discard this patch.
src/Entity/Customer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function getId(): int
271 271
     {
272
-        return (int)$this->id;
272
+        return (int) $this->id;
273 273
     }
274 274
 
275 275
     /**
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      */
288 288
     public function getExternalId(): int
289 289
     {
290
-        return (int)$this->externalId;
290
+        return (int) $this->externalId;
291 291
     }
292 292
 
293 293
     /**
Please login to merge, or discard this patch.
src/Entity/ProductRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     public function getId(): int
96 96
     {
97
-        return (int)$this->id;
97
+        return (int) $this->id;
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/Entity/Price.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function getId(): int
102 102
     {
103
-        return (int)$this->id;
103
+        return (int) $this->id;
104 104
     }
105 105
 
106 106
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function getSpecialOfferPrice()
210 210
     {
211
-        return DandomainFoundation\createMoney((string)$this->currencyCode, (int)$this->specialOfferPrice);
211
+        return DandomainFoundation\createMoney((string) $this->currencyCode, (int) $this->specialOfferPrice);
212 212
     }
213 213
 
214 214
     /**
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     public function setSpecialOfferPrice(Money $specialOfferPrice = null)
219 219
     {
220
-        if($specialOfferPrice) {
220
+        if ($specialOfferPrice) {
221 221
             $this->specialOfferPrice = $specialOfferPrice->getAmount();
222 222
             $this->setCurrencyCode($specialOfferPrice->getCurrency()->getCode());
223 223
         } else {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function getUnitPrice()
233 233
     {
234
-        return DandomainFoundation\createMoney((string)$this->currencyCode, (int)$this->unitPrice);
234
+        return DandomainFoundation\createMoney((string) $this->currencyCode, (int) $this->unitPrice);
235 235
     }
236 236
 
237 237
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function setUnitPrice(Money $unitPrice = null)
242 242
     {
243
-        if($unitPrice) {
243
+        if ($unitPrice) {
244 244
             $this->unitPrice = $unitPrice->getAmount();
245 245
             $this->setCurrencyCode($unitPrice->getCurrency()->getCode());
246 246
         } else {
Please login to merge, or discard this patch.