@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy; |
| 6 | 6 | |
@@ -28,28 +28,28 @@ discard block |
||
| 28 | 28 | public function prepareRawResponse(array $raw_response): ResponseInterface |
| 29 | 29 | { |
| 30 | 30 | foreach ($this->specifications as $specification_class => $response_class) { |
| 31 | - if (! class_exists($specification_class)) { |
|
| 31 | + if ( ! class_exists($specification_class)) { |
|
| 32 | 32 | throw new ClassNotFoundException(sprintf( |
| 33 | 33 | 'The class %s is not found', |
| 34 | 34 | $specification_class |
| 35 | 35 | )); |
| 36 | 36 | } |
| 37 | 37 | $specification = new $specification_class; |
| 38 | - if (! ($specification instanceof SpecificationInterface)) { |
|
| 38 | + if ( ! ($specification instanceof SpecificationInterface)) { |
|
| 39 | 39 | throw new IsNotInstanceOfException(sprintf( |
| 40 | 40 | 'The class %s is not an instance of %s', |
| 41 | 41 | $specification_class, SpecificationInterface::class |
| 42 | 42 | )); |
| 43 | 43 | } |
| 44 | 44 | if ($specification->isSatisfiedBy($raw_response)) { |
| 45 | - if (! class_exists($response_class)) { |
|
| 45 | + if ( ! class_exists($response_class)) { |
|
| 46 | 46 | throw new ClassNotFoundException(sprintf( |
| 47 | 47 | 'The class %s is not found', |
| 48 | 48 | $response_class |
| 49 | 49 | )); |
| 50 | 50 | } |
| 51 | 51 | $response = new $response_class; |
| 52 | - if (! ($response instanceof ResponseInterface)) { |
|
| 52 | + if ( ! ($response instanceof ResponseInterface)) { |
|
| 53 | 53 | throw new IsNotInstanceOfException(sprintf( |
| 54 | 54 | 'The class %s is not an instance of %s', |
| 55 | 55 | $response_class, ResponseInterface::class |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy\Specification; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy\Specification; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Korobovn\CloudPayments\Message\Strategy\Specification; |
| 6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | public function isSatisfiedBy(array $response): bool |
| 13 | 13 | { |
| 14 | - if (! is_array($response['Model'])) { |
|
| 14 | + if ( ! is_array($response['Model'])) { |
|
| 15 | 15 | return false; |
| 16 | 16 | } |
| 17 | 17 | |