Completed
Push — master ( 36d425...4e4c65 )
by Nikolay
03:33
created
src/CloudPayments/Client/CloudPaymentClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/CloudPayments/Message/Response/Model/SubscriptionsModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/CloudPayments/Message/Traits/ModelFeature/ToArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Message/Strategy/Specification/SubscriptionsInModelSpecification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/CloudPayments/CloudPaymentsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/CloudPayments/Message/Strategy/AbstractStrategy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,28 +26,28 @@
 block discarded – undo
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
Please login to merge, or discard this patch.