Passed
Push — master ( 1f9e9c...11e26c )
by
unknown
03:25
created
src/Bpost/Label.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function output()
103 103
     {
104
-        header('Content-type: ' . $this->getMimeType());
104
+        header('Content-type: '.$this->getMimeType());
105 105
         echo $this->getBytes();
106 106
         exit;
107 107
     }
Please login to merge, or discard this patch.
src/Bpost/Order/Box/International.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     {
162 162
         $tagName = 'internationalBox';
163 163
         if ($prefix !== null) {
164
-            $tagName = $prefix . ':' . $tagName;
164
+            $tagName = $prefix.':'.$tagName;
165 165
         }
166 166
 
167 167
         $internationalBox = $document->createElement($tagName);
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                 if (in_array($optionData->getName(), array(Messaging::MESSAGING_TYPE_INFO_DISTRIBUTED))) {
237 237
                     $option = Messaging::createFromXML($optionData);
238 238
                 } else {
239
-                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\' . ucfirst($optionData->getName());
239
+                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\'.ucfirst($optionData->getName());
240 240
                     if (!method_exists($className, 'createFromXML')) {
241 241
                         throw new BpostNotImplementedException();
242 242
                     }
Please login to merge, or discard this patch.
src/Bpost/Order/Box/AtBpost.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
         if (isset($xml->atBpost->product) && $xml->atBpost->product != '') {
263 263
             $atBpost->setProduct(
264
-                (string)$xml->atBpost->product
264
+                (string) $xml->atBpost->product
265 265
             );
266 266
         }
267 267
         if (isset($xml->atBpost->options)) {
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
                 ) {
282 282
                     $option = Messaging::createFromXML($optionData);
283 283
                 } else {
284
-                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\' . ucfirst($optionData->getName());
284
+                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\'.ucfirst($optionData->getName());
285 285
                     if (!method_exists($className, 'createFromXML')) {
286 286
                         throw new BpostNotImplementedException();
287 287
                     }
@@ -296,27 +296,27 @@  discard block
 block discarded – undo
296 296
         }
297 297
         if (isset($xml->atBpost->weight) && $xml->atBpost->weight != '') {
298 298
             $atBpost->setWeight(
299
-                (int)$xml->atBpost->weight
299
+                (int) $xml->atBpost->weight
300 300
             );
301 301
         }
302 302
         if (isset($xml->atBpost->receiverName) && $xml->atBpost->receiverName != '') {
303 303
             $atBpost->setReceiverName(
304
-                (string)$xml->atBpost->receiverName
304
+                (string) $xml->atBpost->receiverName
305 305
             );
306 306
         }
307 307
         if (isset($xml->atBpost->receiverCompany) && $xml->atBpost->receiverCompany != '') {
308 308
             $atBpost->setReceiverCompany(
309
-                (string)$xml->atBpost->receiverCompany
309
+                (string) $xml->atBpost->receiverCompany
310 310
             );
311 311
         }
312 312
         if (isset($xml->atBpost->pugoId) && $xml->atBpost->pugoId != '') {
313 313
             $atBpost->setPugoId(
314
-                (string)$xml->atBpost->pugoId
314
+                (string) $xml->atBpost->pugoId
315 315
             );
316 316
         }
317 317
         if (isset($xml->atBpost->pugoName) && $xml->atBpost->pugoName != '') {
318 318
             $atBpost->setPugoName(
319
-                (string)$xml->atBpost->pugoName
319
+                (string) $xml->atBpost->pugoName
320 320
             );
321 321
         }
322 322
         if (isset($xml->atBpost->pugoAddress)) {
@@ -330,12 +330,12 @@  discard block
 block discarded – undo
330 330
         }
331 331
         if (isset($xml->atBpost->requestedDeliveryDate) && $xml->atBpost->requestedDeliveryDate != '') {
332 332
             $atBpost->setRequestedDeliveryDate(
333
-                (string)$xml->atBpost->requestedDeliveryDate
333
+                (string) $xml->atBpost->requestedDeliveryDate
334 334
             );
335 335
         }
336 336
         if (isset($xml->atBpost->shopHandlingInstruction) && $xml->atBpost->shopHandlingInstruction != '') {
337 337
             $atBpost->setShopHandlingInstruction(
338
-                (string)$xml->atBpost->shopHandlingInstruction
338
+                (string) $xml->atBpost->shopHandlingInstruction
339 339
             );
340 340
         }
341 341
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Openinghour/Day.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     {
110 110
         $tagName = $this->getDay();
111 111
         if ($prefix !== null) {
112
-            $tagName = $prefix . ':' . $tagName;
112
+            $tagName = $prefix.':'.$tagName;
113 113
         }
114 114
 
115 115
         return $document->createElement($tagName, $this->getValue());
Please login to merge, or discard this patch.
src/Bpost/Order/Box/At247.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function setRequestedDeliveryDate($requestedDeliveryDate)
195 195
     {
196
-        $this->requestedDeliveryDate = (string)$requestedDeliveryDate;
196
+        $this->requestedDeliveryDate = (string) $requestedDeliveryDate;
197 197
     }
198 198
 
199 199
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         $tagName = 'nationalBox';
210 210
         if ($prefix !== null) {
211
-            $tagName = $prefix . ':' . $tagName;
211
+            $tagName = $prefix.':'.$tagName;
212 212
         }
213 213
         $nationalElement = $document->createElement($tagName);
214 214
         $boxElement = parent::toXML($document, null, 'at24-7');
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 
307 307
         if (isset($xml->{'at24-7'}->product) && $xml->{'at24-7'}->product != '') {
308 308
             $at247->setProduct(
309
-                (string)$xml->{'at24-7'}->product
309
+                (string) $xml->{'at24-7'}->product
310 310
             );
311 311
         }
312 312
         if (isset($xml->{'at24-7'}->options)) {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
                 if (in_array($optionData->getName(), array(Messaging::MESSAGING_TYPE_INFO_DISTRIBUTED))) {
318 318
                     $option = Messaging::createFromXML($optionData);
319 319
                 } else {
320
-                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\' . ucfirst($optionData->getName());
320
+                    $className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\'.ucfirst($optionData->getName());
321 321
                     if (!method_exists($className, 'createFromXML')) {
322 322
                         throw new BpostNotImplementedException();
323 323
                     }
@@ -332,32 +332,32 @@  discard block
 block discarded – undo
332 332
         }
333 333
         if (isset($xml->{'at24-7'}->weight) && $xml->{'at24-7'}->weight != '') {
334 334
             $at247->setWeight(
335
-                (int)$xml->{'at24-7'}->weight
335
+                (int) $xml->{'at24-7'}->weight
336 336
             );
337 337
         }
338 338
         if (isset($xml->{'at24-7'}->memberId) && $xml->{'at24-7'}->memberId != '') {
339 339
             $at247->setMemberId(
340
-                (string)$xml->{'at24-7'}->memberId
340
+                (string) $xml->{'at24-7'}->memberId
341 341
             );
342 342
         }
343 343
         if (isset($xml->{'at24-7'}->receiverName) && $xml->{'at24-7'}->receiverName != '') {
344 344
             $at247->setReceiverName(
345
-                (string)$xml->{'at24-7'}->receiverName
345
+                (string) $xml->{'at24-7'}->receiverName
346 346
             );
347 347
         }
348 348
         if (isset($xml->{'at24-7'}->receiverCompany) && $xml->{'at24-7'}->receiverCompany != '') {
349 349
             $at247->setReceiverCompany(
350
-                (string)$xml->{'at24-7'}->receiverCompany
350
+                (string) $xml->{'at24-7'}->receiverCompany
351 351
             );
352 352
         }
353 353
         if (isset($xml->{'at24-7'}->parcelsDepotId) && $xml->{'at24-7'}->parcelsDepotId != '') {
354 354
             $at247->setParcelsDepotId(
355
-                (string)$xml->{'at24-7'}->parcelsDepotId
355
+                (string) $xml->{'at24-7'}->parcelsDepotId
356 356
             );
357 357
         }
358 358
         if (isset($xml->{'at24-7'}->parcelsDepotName) && $xml->{'at24-7'}->parcelsDepotName != '') {
359 359
             $at247->setParcelsDepotName(
360
-                (string)$xml->{'at24-7'}->parcelsDepotName
360
+                (string) $xml->{'at24-7'}->parcelsDepotName
361 361
             );
362 362
         }
363 363
         if (isset($xml->{'at24-7'}->parcelsDepotAddress)) {
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         }
372 372
         if (isset($xml->{'at24-7'}->requestedDeliveryDate) && $xml->{'at24-7'}->requestedDeliveryDate != '') {
373 373
             $at247->setRequestedDeliveryDate(
374
-                (string)$xml->{'at24-7'}->requestedDeliveryDate
374
+                (string) $xml->{'at24-7'}->requestedDeliveryDate
375 375
             );
376 376
         }
377 377
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Customsinfo/CustomsInfo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     {
192 192
         $tagName = 'customsInfo';
193 193
         if ($prefix !== null) {
194
-            $tagName = $prefix . ':' . $tagName;
194
+            $tagName = $prefix.':'.$tagName;
195 195
         }
196 196
 
197 197
         $customsInfo = $document->createElement($tagName);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         if ($this->getParcelValue() !== null) {
200 200
             $tagName = 'parcelValue';
201 201
             if ($prefix !== null) {
202
-                $tagName = $prefix . ':' . $tagName;
202
+                $tagName = $prefix.':'.$tagName;
203 203
             }
204 204
             $customsInfo->appendChild(
205 205
                 $document->createElement(
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         if ($this->getContentDescription() !== null) {
212 212
             $tagName = 'contentDescription';
213 213
             if ($prefix !== null) {
214
-                $tagName = $prefix . ':' . $tagName;
214
+                $tagName = $prefix.':'.$tagName;
215 215
             }
216 216
             $customsInfo->appendChild(
217 217
                 $document->createElement(
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         if ($this->getShipmentType() !== null) {
224 224
             $tagName = 'shipmentType';
225 225
             if ($prefix !== null) {
226
-                $tagName = $prefix . ':' . $tagName;
226
+                $tagName = $prefix.':'.$tagName;
227 227
             }
228 228
             $customsInfo->appendChild(
229 229
                 $document->createElement(
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         if ($this->getPossibleParcelReturnInstructionValues() !== null) {
236 236
             $tagName = 'parcelReturnInstructions';
237 237
             if ($prefix !== null) {
238
-                $tagName = $prefix . ':' . $tagName;
238
+                $tagName = $prefix.':'.$tagName;
239 239
             }
240 240
             $customsInfo->appendChild(
241 241
                 $document->createElement(
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         if ($this->getPrivateAddress() !== null) {
248 248
             $tagName = 'privateAddress';
249 249
             if ($prefix !== null) {
250
-                $tagName = $prefix . ':' . $tagName;
250
+                $tagName = $prefix.':'.$tagName;
251 251
             }
252 252
             if ($this->getPrivateAddress()) {
253 253
                 $value = 'true';
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Option/Messaging.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     {
194 194
         $tagName = $this->getType();
195 195
         if ($prefix !== null) {
196
-            $tagName = $prefix . ':' . $tagName;
196
+            $tagName = $prefix.':'.$tagName;
197 197
         }
198 198
 
199 199
         $messaging = $document->createElement($tagName);
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         if ($this->getEmailAddress() !== null) {
203 203
             $tagName = 'emailAddress';
204 204
             if ($prefix !== null) {
205
-                $tagName = $prefix . ':' . $tagName;
205
+                $tagName = $prefix.':'.$tagName;
206 206
             }
207 207
             $messaging->appendChild(
208 208
                 $document->createElement(
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         if ($this->getMobilePhone() !== null) {
215 215
             $tagName = 'mobilePhone';
216 216
             if ($prefix !== null) {
217
-                $tagName = $prefix . ':' . $tagName;
217
+                $tagName = $prefix.':'.$tagName;
218 218
             }
219 219
             $messaging->appendChild(
220 220
                 $document->createElement(
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Option/AutomaticSecondPresentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $tagName = 'automaticSecondPresentation';
24 24
         if ($prefix !== null) {
25
-            $tagName = $prefix . ':' . $tagName;
25
+            $tagName = $prefix.':'.$tagName;
26 26
         }
27 27
 
28 28
         return $document->createElement($tagName);
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Option/CashOnDelivery.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $tagName = 'cod';
99 99
         if ($prefix !== null) {
100
-            $tagName = $prefix . ':' . $tagName;
100
+            $tagName = $prefix.':'.$tagName;
101 101
         }
102 102
 
103 103
         $cod = $document->createElement($tagName);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         if ($this->getAmount() !== null) {
106 106
             $tagName = 'codAmount';
107 107
             if ($prefix !== null) {
108
-                $tagName = $prefix . ':' . $tagName;
108
+                $tagName = $prefix.':'.$tagName;
109 109
             }
110 110
             $cod->appendChild(
111 111
                 $document->createElement(
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         if ($this->getIban() !== null) {
118 118
             $tagName = 'iban';
119 119
             if ($prefix !== null) {
120
-                $tagName = $prefix . ':' . $tagName;
120
+                $tagName = $prefix.':'.$tagName;
121 121
             }
122 122
             $cod->appendChild(
123 123
                 $document->createElement(
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         if ($this->getBic() !== null) {
130 130
             $tagName = 'bic';
131 131
             if ($prefix !== null) {
132
-                $tagName = $prefix . ':' . $tagName;
132
+                $tagName = $prefix.':'.$tagName;
133 133
             }
134 134
             $cod->appendChild(
135 135
                 $document->createElement(
Please login to merge, or discard this patch.