@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\DataStructure; |
| 4 | 4 | |
@@ -62,20 +62,20 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | foreach (SendMethods::all() as $method) { |
| 65 | - if (! isset($doc->$method)) { |
|
| 65 | + if (!isset($doc->$method)) { |
|
| 66 | 66 | continue; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $element = $doc->$method; |
| 70 | 70 | |
| 71 | - if (! isset($element->status)) { |
|
| 71 | + if (!isset($element->status)) { |
|
| 72 | 72 | throw new UnknownErrorResponseException('Missing response status value from Skebby', $rawResponse); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | $this->status = (string) $element->status; |
| 76 | 76 | $this->messageId = isset($element->id) ? (string) $element->id : null; |
| 77 | 77 | |
| 78 | - if (! $this->isSuccessful()) { |
|
| 78 | + if (!$this->isSuccessful()) { |
|
| 79 | 79 | $this->code = isset($element->code) ? (string) $element->code : null; |
| 80 | 80 | $this->errorMessage = isset($element->message) ? (string) $element->message : 'Unknown error'; |
| 81 | 81 | } |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\DataStructure; |
| 4 | 4 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public function hasRecipients(): bool |
| 158 | 158 | { |
| 159 | - return ! empty($this->recipients); |
|
| 159 | + return !empty($this->recipients); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | string $recipientVariable, |
| 199 | 199 | string $recipientVariableValue |
| 200 | 200 | ): self { |
| 201 | - if (! isset($this->recipientVariables[$recipient])) { |
|
| 201 | + if (!isset($this->recipientVariables[$recipient])) { |
|
| 202 | 202 | $this->recipientVariables[$recipient] = []; |
| 203 | 203 | } |
| 204 | 204 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | */ |
| 230 | 230 | public function hasRecipientVariables(): bool |
| 231 | 231 | { |
| 232 | - return ! empty($this->recipientVariables); |
|
| 232 | + return !empty($this->recipientVariables); |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | /** |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Fazland\SkebbyRestClient\Constant; |
| 4 | 4 | |