@@ -30,8 +30,8 @@ |
||
| 30 | 30 | $acceptSuffix = $this->asPdf ? 'pdf' : 'image'; |
| 31 | 31 | |
| 32 | 32 | return [ |
| 33 | - 'Accept: application/vnd.bpost.shm-label-' . $acceptSuffix . '-' . ApiVersions::V3_3 . '+XML', |
|
| 34 | - 'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3_3 . '+XML', |
|
| 33 | + 'Accept: application/vnd.bpost.shm-label-'.$acceptSuffix.'-'.ApiVersions::V3_3.'+XML', |
|
| 34 | + 'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3_3.'+XML', |
|
| 35 | 35 | ]; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -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 | /** |