@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function send(RequestInterface $request): ResponseInterface |
46 | 46 | { |
47 | - $psr_request = new Request( |
|
47 | + $psr_request = new Request( |
|
48 | 48 | $request->getMethod(), |
49 | 49 | $request->getUrl(), |
50 | 50 | $request->getHeaders(), |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function toArray(): array |
32 | 32 | { |
33 | - return array_map(function (SubscriptionModel $subscription) { |
|
33 | + return array_map(function(SubscriptionModel $subscription) { |
|
34 | 34 | return $subscription->toArray(); |
35 | 35 | }, $this->subscriptions); |
36 | 36 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $methods = get_class_methods($this); |
14 | 14 | |
15 | 15 | if ($methods) { |
16 | - $getters = array_filter($methods, function ($method) { |
|
16 | + $getters = array_filter($methods, function($method) { |
|
17 | 17 | return preg_match('/get[A-Z]*|is[A-Z]*/', $method); |
18 | 18 | }); |
19 | 19 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public function isSatisfiedBy(array $response): bool |
8 | 8 | { |
9 | - if (! is_array($response['Model'])) { |
|
9 | + if ( ! is_array($response['Model'])) { |
|
10 | 10 | return false; |
11 | 11 | } |
12 | 12 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $this->initializeConfigs(); |
22 | 22 | |
23 | - $this->app->bind(CloudPaymentClient::class, function (Container $app) { |
|
23 | + $this->app->bind(CloudPaymentClient::class, function(Container $app) { |
|
24 | 24 | $http_client = $app->make(ClientInterface::class); |
25 | 25 | /** @var Repository $config */ |
26 | 26 | $config = $app->make('config'); |
@@ -26,28 +26,28 @@ |
||
26 | 26 | public function prepareRawResponse(array $raw_response): ResponseInterface |
27 | 27 | { |
28 | 28 | foreach ($this->specifications as $specification_class => $response_class) { |
29 | - if (! class_exists($specification_class)) { |
|
29 | + if ( ! class_exists($specification_class)) { |
|
30 | 30 | throw new ClassNotFoundException(sprintf( |
31 | 31 | 'The class %s is not found', |
32 | 32 | $specification_class |
33 | 33 | )); |
34 | 34 | } |
35 | 35 | $specification = new $specification_class; |
36 | - if (! ($specification instanceof SpecificationInterface)) { |
|
36 | + if ( ! ($specification instanceof SpecificationInterface)) { |
|
37 | 37 | throw new IsNotInstanceOfException(sprintf( |
38 | 38 | 'The class %s is not an instance of %s', |
39 | 39 | $specification_class, SpecificationInterface::class |
40 | 40 | )); |
41 | 41 | } |
42 | 42 | if ($specification->isSatisfiedBy($raw_response)) { |
43 | - if (! class_exists($response_class)) { |
|
43 | + if ( ! class_exists($response_class)) { |
|
44 | 44 | throw new ClassNotFoundException(sprintf( |
45 | 45 | 'The class %s is not found', |
46 | 46 | $response_class |
47 | 47 | )); |
48 | 48 | } |
49 | 49 | $response = new $response_class; |
50 | - if (! ($response instanceof ResponseInterface)) { |
|
50 | + if ( ! ($response instanceof ResponseInterface)) { |
|
51 | 51 | throw new IsNotInstanceOfException(sprintf( |
52 | 52 | 'The class %s is not an instance of %s', |
53 | 53 | $response_class, ResponseInterface::class |