Test Failed
Push — master ( 217cf2...ee7786 )
by Nikolay
03:06
created
config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 return [
6 6
     'cloud_payments' => [
Please login to merge, or discard this patch.
src/CloudPaymentsServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Korobovn\CloudPayments;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $this->initializeConfigs();
24 24
 
25
-        $this->app->bind(CloudPaymentClient::class, function (Container $app) {
25
+        $this->app->bind(CloudPaymentClient::class, function(Container $app) {
26 26
             $http_client = $app->make(ClientInterface::class);
27 27
             /** @var Repository $config */
28 28
             $config = $app->make('config');
Please login to merge, or discard this patch.
src/Client/Exception/InvalidHttpResponseCodeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Korobovn\CloudPayments\Client\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Client/CloudPaymentClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Korobovn\CloudPayments\Client;
6 6
 
Please login to merge, or discard this patch.
src/Client/CloudPaymentClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Korobovn\CloudPayments\Client;
6 6
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function send(RequestInterface $request): ResponseInterface
49 49
     {
50
-        $psr_request  = new Request(
50
+        $psr_request = new Request(
51 51
             $request->getMethod(),
52 52
             $request->getUrl(),
53 53
             $request->getHeaders(),
Please login to merge, or discard this patch.
src/Message/Strategy/SuccessStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Message/Strategy/AbstractStrategy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Message/Strategy/Specification/InvalidRequestSpecification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Message/Strategy/Specification/SubscriptionsInModelSpecification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.