Passed
Push — master ( 1f9e9c...11e26c )
by
unknown
03:25
created
src/Bpost/CreateLabelInBulkForOrders.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function getHeaders($asPdf)
39 39
     {
40 40
         return array(
41
-            'Accept: application/vnd.bpost.shm-label-' . ($asPdf ? 'pdf' : 'image') . '-v3+XML',
41
+            'Accept: application/vnd.bpost.shm-label-'.($asPdf ? 'pdf' : 'image').'-v3+XML',
42 42
             'Content-Type: application/vnd.bpost.shm-labelRequest-v3+XML',
43 43
         );
44 44
     }
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getUrl(LabelFormat $format, $withReturnLabels)
52 52
     {
53
-        return '/labels/' . $format->getValue() . ($withReturnLabels ? '/withReturnLabels' : '');
53
+        return '/labels/'.$format->getValue().($withReturnLabels ? '/withReturnLabels' : '');
54 54
     }
55 55
 }
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.
src/Exception/BpostNotImplementedException.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 = 'Not implemented' . (empty($message) ? '' : ': ' . $message);
20
+        $message = 'Not implemented'.(empty($message) ? '' : ': '.$message);
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/FormHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             'orderReference',
55 55
             'orderWeight',
56 56
         );
57
-        $base = 'accountId=' . $this->bpost->getAccountId() . '&';
57
+        $base = 'accountId='.$this->bpost->getAccountId().'&';
58 58
 
59 59
         foreach ($keysToHash as $key) {
60 60
             if (isset($this->parameters[$key])) {
61
-                $base .= $key . '=' . $this->parameters[$key] . '&';
61
+                $base .= $key.'='.$this->parameters[$key].'&';
62 62
             }
63 63
         }
64 64
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         if ($form && isset($return['orderLine'])) {
84 84
             foreach ($return['orderLine'] as $key => $value) {
85
-                $return['orderLine[' . $key . ']'] = $value;
85
+                $return['orderLine['.$key.']'] = $value;
86 86
             }
87 87
 
88 88
             unset($return['orderLine']);
Please login to merge, or discard this patch.
src/Bpack247.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
     private function doCall($url, $body = null, $method = 'GET')
81 81
     {
82 82
         // build Authorization header
83
-        $headers[] = 'Authorization: Basic ' . $this->getAuthorizationHeader();
83
+        $headers[] = 'Authorization: Basic '.$this->getAuthorizationHeader();
84 84
 
85 85
         // set options
86
-        $options[CURLOPT_URL] = self::API_URL . $url;
86
+        $options[CURLOPT_URL] = self::API_URL.$url;
87 87
         $options[CURLOPT_USERAGENT] = $this->getUserAgent();
88 88
         $options[CURLOPT_RETURNTRANSFER] = true;
89 89
         $options[CURLOPT_TIMEOUT] = (int) $this->getTimeOut();
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     private function getAuthorizationHeader()
158 158
     {
159
-        return base64_encode($this->accountId . ':' . $this->passPhrase);
159
+        return base64_encode($this->accountId.':'.$this->passPhrase);
160 160
     }
161 161
 
162 162
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function getUserAgent()
191 191
     {
192
-        return (string) 'PHP Bpost Bpack247/' . self::VERSION . ' ' . $this->userAgent;
192
+        return (string) 'PHP Bpost Bpack247/'.self::VERSION.' '.$this->userAgent;
193 193
     }
194 194
 
195 195
     /**
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     public function getMember($id)
262 262
     {
263 263
         $xml = $this->doCall(
264
-            '/customer/' . $id
264
+            '/customer/'.$id
265 265
         );
266 266
 
267 267
         return Customer::createFromXML($xml);
Please login to merge, or discard this patch.