Passed
Push — master ( 67a5da...c35f7b )
by Jared
01:13
created
src/Service/InStore/PreApproval.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,12 +53,12 @@
 block discarded – undo
53 53
                     'User-Agent' => $this->getAuthorization()->getUserAgent()
54 54
                 ],
55 55
                 'body' => $this->getSerializer()->serialize(
56
-                    ['preApprovalCode' => $preApprovalCode],
56
+                    [ 'preApprovalCode' => $preApprovalCode ],
57 57
                     'json'
58 58
                 ),
59 59
             ];
60 60
             if ($stack !== null) {
61
-                $params['handler'] = $stack;
61
+                $params[ 'handler' ] = $stack;
62 62
             }
63 63
 
64 64
             $result = $this->getClient()->post('preapprovals/enquire', $params);
Please login to merge, or discard this patch.
src/Model/InStore/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @var Item[]
43 43
      */
44
-    protected $orderItems = [];
44
+    protected $orderItems = [ ];
45 45
 
46 46
     /**
47 47
      * @return int
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function addOrderItem(Item $orderItem)
214 214
     {
215
-        $this->orderItems[] = $orderItem;
215
+        $this->orderItems[ ] = $orderItem;
216 216
 
217 217
         return $this;
218 218
     }
Please login to merge, or discard this patch.
src/Handler/DateTimeHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,6 @@
 block discarded – undo
59 59
      */
60 60
     public function serializeDateTimeToJson(JsonSerializationVisitor $visitor, $data, array $type)
61 61
     {
62
-        return $data->format($type['params'][0]);
62
+        return $data->format($type[ 'params' ][ 0 ]);
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/Service/InStore/Refund.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 ),
57 57
             ];
58 58
             if ($stack !== null) {
59
-                $params['handler'] = $stack;
59
+                $params[ 'handler' ] = $stack;
60 60
             }
61 61
 
62 62
             $result = $this->getClient()->post('refunds', $params);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 ),
101 101
             ];
102 102
             if ($stack !== null) {
103
-                $params['handler'] = $stack;
103
+                $params[ 'handler' ] = $stack;
104 104
             }
105 105
 
106 106
             $result = $this->getClient()->post('refunds/reverse', $params);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use CultureKings\Afterpay\Traits;
7 7
 use GuzzleHttp\Client;
8 8
 use GuzzleHttp\Exception\BadResponseException;
9
-use GuzzleHttp\Exception\ClientException;
10 9
 use GuzzleHttp\Psr7;
11 10
 use JMS\Serializer\SerializerInterface;
12 11
 
Please login to merge, or discard this patch.
src/Service/InStore/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 ),
57 57
             ];
58 58
             if ($stack !== null) {
59
-                $params['handler'] = $stack;
59
+                $params[ 'handler' ] = $stack;
60 60
             }
61 61
 
62 62
             $result = $this->getClient()->post('refunds', $params);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 ),
101 101
             ];
102 102
             if ($stack !== null) {
103
-                $params['handler'] = $stack;
103
+                $params[ 'handler' ] = $stack;
104 104
             }
105 105
 
106 106
             $result = $this->getClient()->post('refunds/reverse', $params);
Please login to merge, or discard this patch.
src/Service/Merchant/Payments.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use CultureKings\Afterpay\Traits;
7 7
 use GuzzleHttp\Client;
8 8
 use GuzzleHttp\Exception\BadResponseException;
9
-use GuzzleHttp\Exception\ClientException;
10 9
 use GuzzleHttp\Psr7;
11 10
 use JMS\Serializer\SerializerInterface;
12 11
 
Please login to merge, or discard this patch.
src/Service/InStore/Device.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
                 'body' => $this->getSerializer()->serialize(
52 52
                     $device,
53 53
                     'json',
54
-                    SerializationContext::create()->setGroups(['activateDevice'])
54
+                    SerializationContext::create()->setGroups([ 'activateDevice' ])
55 55
                 ),
56 56
             ];
57 57
             if ($stack !== null) {
58
-                $params['handler'] = $stack;
58
+                $params[ 'handler' ] = $stack;
59 59
             }
60 60
 
61 61
             $result = $this->getClient()->post('devices/activate', $params);
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
                 'body' => $this->getSerializer()->serialize(
94 94
                     $device,
95 95
                     'json',
96
-                    SerializationContext::create()->setGroups(['createToken'])
96
+                    SerializationContext::create()->setGroups([ 'createToken' ])
97 97
                 ),
98 98
             ];
99 99
             if ($stack !== null) {
100
-                $params['handler'] = $stack;
100
+                $params[ 'handler' ] = $stack;
101 101
             }
102 102
 
103 103
             $result = $this->getClient()->post(sprintf('devices/%d/token', $device->getDeviceId()), $params);
Please login to merge, or discard this patch.
src/Factory/InStoreApi.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use CultureKings\Afterpay\Traits;
7 7
 use GuzzleHttp\Client;
8 8
 use GuzzleHttp\Exception\BadResponseException;
9
-use GuzzleHttp\Exception\ClientException;
10 9
 use GuzzleHttp\Psr7;
11 10
 use JMS\Serializer\SerializerInterface;
12 11
 
Please login to merge, or discard this patch.
src/Service/InStore/Customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                 ),
59 59
             ];
60 60
             if ($stack !== null) {
61
-                $params['handler'] = $stack;
61
+                $params[ 'handler' ] = $stack;
62 62
             }
63 63
 
64 64
             $result = $this->getClient()->post('orders', $params);
Please login to merge, or discard this patch.