Passed
Push — master ( 62528d...f6ce91 )
by Zangra
04:28 queued 02:11
created
src/Bpost/Label/Barcode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
     {
40 40
         $self = new self();
41 41
 
42
-        if (isset($xml->barcode) && (string)$xml->barcode !== '') {
43
-            $self->setBarcode((string)$xml->barcode);
42
+        if (isset($xml->barcode) && (string) $xml->barcode !== '') {
43
+            $self->setBarcode((string) $xml->barcode);
44 44
         }
45
-        if (isset($xml->reference) && (string)$xml->reference !== '') {
46
-            $self->setReference((string)$xml->reference);
45
+        if (isset($xml->reference) && (string) $xml->reference !== '') {
46
+            $self->setReference((string) $xml->reference);
47 47
         }
48 48
 
49 49
         return $self;
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/FetchOrderBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
     public function getHeaders(): array
20 20
     {
21 21
         return [
22
-            'Accept: application/vnd.bpost.shm-order-' . ApiVersions::V3_5 . '+XML',
22
+            'Accept: application/vnd.bpost.shm-order-'.ApiVersions::V3_5.'+XML',
23 23
         ];
24 24
     }
25 25
 
26 26
     public function getUrl(): string
27 27
     {
28
-        return '/orders/' . $this->reference;
28
+        return '/orders/'.$this->reference;
29 29
     }
30 30
 
31 31
     public function isExpectXml(): bool
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/ModifyOrder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
     public function getHeaders(): array
46 46
     {
47 47
         return [
48
-            'Content-Type: application/vnd.bpost.shm-orderUpdate-' . ApiVersions::V3 . '+XML',
48
+            'Content-Type: application/vnd.bpost.shm-orderUpdate-'.ApiVersions::V3.'+XML',
49 49
         ];
50 50
     }
51 51
 
52 52
     public function getUrl(): string
53 53
     {
54
-        return '/orders/' . $this->reference;
54
+        return '/orders/'.$this->reference;
55 55
     }
56 56
 
57 57
     public function isExpectXml(): bool
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/CreateLabelInBulkForOrdersBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@
 block discarded – undo
41 41
         $media = $this->asPdf ? 'pdf' : 'image';
42 42
 
43 43
         return [
44
-            'Accept: application/vnd.bpost.shm-label-' . $media . '-' . ApiVersions::V3_4 . '+XML',
45
-            'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3 . '+XML',
44
+            'Accept: application/vnd.bpost.shm-label-'.$media.'-'.ApiVersions::V3_4.'+XML',
45
+            'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3.'+XML',
46 46
         ];
47 47
     }
48 48
 
49 49
     public function getUrl(): string
50 50
     {
51
-        $url = '/labels/' . $this->labelFormat->getValue();
51
+        $url = '/labels/'.$this->labelFormat->getValue();
52 52
 
53 53
         if ($this->withReturnLabels) {
54 54
             $url .= '/withReturnLabels';
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/FetchOrder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
     public function getHeaders(): array
20 20
     {
21 21
         return [
22
-            'Accept: application/vnd.bpost.shm-order-' . ApiVersions::V3_3 . '+XML',
22
+            'Accept: application/vnd.bpost.shm-order-'.ApiVersions::V3_3.'+XML',
23 23
         ];
24 24
     }
25 25
 
26 26
     public function getUrl(): string
27 27
     {
28
-        return '/orders/' . $this->reference;
28
+        return '/orders/'.$this->reference;
29 29
     }
30 30
 
31 31
     public function isExpectXml(): bool
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/CreateOrReplaceOrderBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function getHeaders(): array
31 31
     {
32 32
         return [
33
-            'Content-Type: application/vnd.bpost.shm-order-' . ApiVersions::V5 . '+XML',
33
+            'Content-Type: application/vnd.bpost.shm-order-'.ApiVersions::V5.'+XML',
34 34
         ];
35 35
     }
36 36
 
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/CreateLabelInBulkForOrders.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,15 +46,15 @@
 block discarded – undo
46 46
         $media = $this->asPdf ? 'pdf' : 'image';
47 47
 
48 48
         return [
49
-            'Accept: application/vnd.bpost.shm-label-' . $media . '-' . ApiVersions::V3 . '+XML',
50
-            'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3 . '+XML',
49
+            'Accept: application/vnd.bpost.shm-label-'.$media.'-'.ApiVersions::V3.'+XML',
50
+            'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3.'+XML',
51 51
         ];
52 52
     }
53 53
 
54 54
 
55 55
     public function getUrl(): string
56 56
     {
57
-        $url = '/labels/' . $this->labelFormat->getValue();
57
+        $url = '/labels/'.$this->labelFormat->getValue();
58 58
         if ($this->withReturnLabels) {
59 59
             $url .= '/withReturnLabels';
60 60
         }
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/FetchProductConfigBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function getHeaders(): array
16 16
     {
17 17
         return [
18
-            'Accept: application/vnd.bpost.shm-productConfiguration-' . ApiVersions::V3_1 . '+XML',
18
+            'Accept: application/vnd.bpost.shm-productConfiguration-'.ApiVersions::V3_1.'+XML',
19 19
         ];
20 20
     }
21 21
 
Please login to merge, or discard this patch.
src/Bpost/HttpRequestBuilder/CreateLabelBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
         $media = $this->asPdf ? 'pdf' : 'image';
31 31
 
32 32
         return [
33
-            'Accept: application/vnd.bpost.shm-label-' . $media . '-' . ApiVersions::V3_4 . '+XML',
34
-            'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3 . '+XML',
33
+            'Accept: application/vnd.bpost.shm-label-'.$media.'-'.ApiVersions::V3_4.'+XML',
34
+            'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3.'+XML',
35 35
         ];
36 36
     }
37 37
 
Please login to merge, or discard this patch.