Test Setup Failed
Branch master (eb1bba)
by kouinkouin
03:46
created
src/Bpost/Order/Box/National.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         if ($this->getProduct() !== null) {
154 154
             $tagName = 'product';
155 155
             if ($prefix !== null) {
156
-                $tagName = $prefix . ':' . $tagName;
156
+                $tagName = $prefix.':'.$tagName;
157 157
             }
158 158
             $typeElement->appendChild(
159 159
                 $document->createElement(
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
         if (isset($nationalXml->product) && $nationalXml->product != '') {
222 222
             $self->setProduct(
223
-                (string)$nationalXml->product
223
+                (string) $nationalXml->product
224 224
             );
225 225
         }
226 226
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                 ) {
239 239
                     $option = Messaging::createFromXML($optionData);
240 240
                 } else {
241
-                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\' . ucfirst($optionData->getName());
241
+                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\'.ucfirst($optionData->getName());
242 242
                     if (!method_exists($className, 'createFromXML')) {
243 243
                         throw new BpostXmlInvalidItemException();
244 244
                     }
@@ -254,19 +254,19 @@  discard block
 block discarded – undo
254 254
 
255 255
         if (isset($nationalXml->weight) && $nationalXml->weight != '') {
256 256
             $self->setWeight(
257
-                (int)$nationalXml->weight
257
+                (int) $nationalXml->weight
258 258
             );
259 259
         }
260 260
 
261 261
         if (isset($nationalXml->openingHours) && $nationalXml->openingHours != '') {
262 262
             foreach ($nationalXml->openingHours->children() as $day => $value) {
263
-                $self->addOpeningHour(new Day($day, (string)$value));
263
+                $self->addOpeningHour(new Day($day, (string) $value));
264 264
             }
265 265
         }
266 266
 
267 267
         if (isset($nationalXml->desiredDeliveryPlace) && $nationalXml->desiredDeliveryPlace != '') {
268 268
             $self->setDesiredDeliveryPlace(
269
-                (string)$nationalXml->desiredDeliveryPlace
269
+                (string) $nationalXml->desiredDeliveryPlace
270 270
             );
271 271
         }
272 272
 
Please login to merge, or discard this patch.
src/Bpost/Order/Address.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         if ($this->getStreetName() !== null) {
223 223
             $tagName = 'streetName';
224 224
             if ($prefix !== null) {
225
-                $tagName = $prefix . ':' . $tagName;
225
+                $tagName = $prefix.':'.$tagName;
226 226
             }
227 227
             $address->appendChild(
228 228
                 $document->createElement(
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         if ($this->getNumber() !== null) {
235 235
             $tagName = 'number';
236 236
             if ($prefix !== null) {
237
-                $tagName = $prefix . ':' . $tagName;
237
+                $tagName = $prefix.':'.$tagName;
238 238
             }
239 239
             $address->appendChild(
240 240
                 $document->createElement(
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         if ($this->getBox() !== null) {
247 247
             $tagName = 'box';
248 248
             if ($prefix !== null) {
249
-                $tagName = $prefix . ':' . $tagName;
249
+                $tagName = $prefix.':'.$tagName;
250 250
             }
251 251
             $address->appendChild(
252 252
                 $document->createElement(
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         if ($this->getPostalCode() !== null) {
259 259
             $tagName = 'postalCode';
260 260
             if ($prefix !== null) {
261
-                $tagName = $prefix . ':' . $tagName;
261
+                $tagName = $prefix.':'.$tagName;
262 262
             }
263 263
             $address->appendChild(
264 264
                 $document->createElement(
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         if ($this->getLocality() !== null) {
271 271
             $tagName = 'locality';
272 272
             if ($prefix !== null) {
273
-                $tagName = $prefix . ':' . $tagName;
273
+                $tagName = $prefix.':'.$tagName;
274 274
             }
275 275
             $address->appendChild(
276 276
                 $document->createElement(
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         if ($this->getCountryCode() !== null) {
283 283
             $tagName = 'countryCode';
284 284
             if ($prefix !== null) {
285
-                $tagName = $prefix . ':' . $tagName;
285
+                $tagName = $prefix.':'.$tagName;
286 286
             }
287 287
             $address->appendChild(
288 288
                 $document->createElement(
Please login to merge, or discard this patch.
src/Bpost/Order/Line.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $tagName = 'orderLine';
77 77
         if ($prefix !== null) {
78
-            $tagName = $prefix . ':' . $tagName;
78
+            $tagName = $prefix.':'.$tagName;
79 79
         }
80 80
 
81 81
         $line = $document->createElement($tagName);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         if ($this->getText() !== null) {
84 84
             $tagName = 'text';
85 85
             if ($prefix !== null) {
86
-                $tagName = $prefix . ':' . $tagName;
86
+                $tagName = $prefix.':'.$tagName;
87 87
             }
88 88
             $line->appendChild(
89 89
                 $document->createElement(
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         if ($this->getNumberOfItems() !== null) {
96 96
             $tagName = 'nbOfItems';
97 97
             if ($prefix !== null) {
98
-                $tagName = $prefix . ':' . $tagName;
98
+                $tagName = $prefix.':'.$tagName;
99 99
             }
100 100
             $line->appendChild(
101 101
                 $document->createElement(
Please login to merge, or discard this patch.
src/Bpost/Order/Customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     {
139 139
         $tagName = static::TAG_NAME;
140 140
         if ($prefix !== null) {
141
-            $tagName = $prefix . ':' . $tagName;
141
+            $tagName = $prefix.':'.$tagName;
142 142
         }
143 143
 
144 144
         $customer = $document->createElement($tagName);
Please login to merge, or discard this patch.
Exception/BpostApiResponseException/BpostInvalidXmlResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($message = "", $code = 0, \Exception $previous = null)
19 19
     {
20
-        $message = 'Invalid XML-response' . (empty($message) ? '' : ': ' . $message);
20
+        $message = 'Invalid XML-response'.(empty($message) ? '' : ': '.$message);
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exception/BpostApiResponseException/BpostInvalidResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($message = "", $code = 0, \Exception $previous = null)
19 19
     {
20
-        $message = 'Invalid response' . (empty($message) ? '' : ': ' . $message);
20
+        $message = 'Invalid response'.(empty($message) ? '' : ': '.$message);
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exception/XmlException/BpostXmlNoReferenceFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($message = "", $code = 0, \Exception $previous = null)
19 19
     {
20
-        $message = 'No reference found' . (empty($message) ? '' : ': ' . $message);
20
+        $message = 'No reference found'.(empty($message) ? '' : ': '.$message);
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exception/XmlException/BpostXmlInvalidItemException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($message = "", $code = 0, \Exception $previous = null)
19 19
     {
20
-        $message = 'Invalid item' . (empty($message) ? '' : ': ' . $message);
20
+        $message = 'Invalid item'.(empty($message) ? '' : ': '.$message);
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exception/XmlException/BpostXmlNoUserIdFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($message = "", $code = 0, \Exception $previous = null)
19 19
     {
20
-        $message = 'No UserId found' . (empty($message) ? '' : ': ' . $message);
20
+        $message = 'No UserId found'.(empty($message) ? '' : ': '.$message);
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.