@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function getHeaders(): array |
| 32 | 32 | { |
| 33 | 33 | return [ |
| 34 | - 'Content-Type: application/vnd.bpost.shm-order-' . ApiVersions::V3_3 . '+XML', |
|
| 34 | + 'Content-Type: application/vnd.bpost.shm-order-'.ApiVersions::V3_3.'+XML', |
|
| 35 | 35 | ]; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __construct(string $message = '', int $code = 0, ?Exception $previous = null) |
| 15 | 15 | { |
| 16 | - $message = 'Invalid response' . ($message === '' ? '' : ': ' . $message); |
|
| 16 | + $message = 'Invalid response'.($message === '' ? '' : ': '.$message); |
|
| 17 | 17 | parent::__construct($message, $code, $previous); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __construct(string $message = '', int $code = 0, ?Exception $previous = null) |
| 15 | 15 | { |
| 16 | - $message = 'Invalid XML-response' . ($message === '' ? '' : ': ' . $message); |
|
| 16 | + $message = 'Invalid XML-response'.($message === '' ? '' : ': '.$message); |
|
| 17 | 17 | parent::__construct($message, $code, $previous); |
| 18 | 18 | } |
| 19 | 19 | } |
| 20 | 20 | \ No newline at end of file |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null) |
| 15 | 15 | { |
| 16 | - $message = 'Not implemented' . (empty($message) ? '' : ': ' . $message); |
|
| 16 | + $message = 'Not implemented'.(empty($message) ? '' : ': '.$message); |
|
| 17 | 17 | parent::__construct($message, $code, $previous); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __construct(string $message = '', int $code = 0, ?Exception $previous = null) |
| 15 | 15 | { |
| 16 | - $message = 'Invalid item' . ($message !== '' ? ': ' . $message : ''); |
|
| 16 | + $message = 'Invalid item'.($message !== '' ? ': '.$message : ''); |
|
| 17 | 17 | parent::__construct($message, $code, $previous); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __construct(string $message = '', int $code = 0, ?Exception $previous = null) |
| 15 | 15 | { |
| 16 | - $message = 'No reference found' . ($message !== '' ? ': ' . $message : ''); |
|
| 16 | + $message = 'No reference found'.($message !== '' ? ': '.$message : ''); |
|
| 17 | 17 | parent::__construct($message, $code, $previous); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __construct(string $message = '', int $code = 0, ?Exception $previous = null) |
| 15 | 15 | { |
| 16 | - $message = 'No UserId found' . ($message !== '' ? ': ' . $message : ''); |
|
| 16 | + $message = 'No UserId found'.($message !== '' ? ': '.$message : ''); |
|
| 17 | 17 | parent::__construct($message, $code, $previous); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | private function buildUrl(string $method, array $parameters = []): string |
| 82 | 82 | { |
| 83 | - return self::API_URL . '?' . $this->buildParameters($method, $parameters); |
|
| 83 | + return self::API_URL.'?'.$this->buildParameters($method, $parameters); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | */ |
| 174 | 174 | public function getUserAgent(): string |
| 175 | 175 | { |
| 176 | - return 'PHP Bpost Geo6/' . self::VERSION . ' ' . $this->userAgent; |
|
| 176 | + return 'PHP Bpost Geo6/'.self::VERSION.' '.$this->userAgent; |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $info = curl_getinfo($curl); // array<string,mixed> |
| 61 | 61 | |
| 62 | 62 | $this->logger->debug('curl response', [ |
| 63 | - 'status' => $errno . ' (' . $error . ')', |
|
| 63 | + 'status' => $errno.' ('.$error.')', |
|
| 64 | 64 | 'headers' => $info, |
| 65 | 65 | 'response' => $result, |
| 66 | 66 | ]); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | // seulement maintenant qu'on sait que ce n’est pas une erreur |
| 73 | 73 | $this->responseBody = is_string($result) ? $result : ''; |
| 74 | 74 | |
| 75 | - $this->responseHttpCode = isset($info['http_code']) ? (int) $info['http_code'] : null; |
|
| 75 | + $this->responseHttpCode = isset($info['http_code']) ? (int) $info['http_code'] : null; |
|
| 76 | 76 | $this->responseContentType = $info['content_type'] ?? null; |
| 77 | 77 | |
| 78 | 78 | return true; |