Passed
Pull Request — master (#30)
by
unknown
04:06
created
src/WebhooksV2.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,18 +104,18 @@
 block discarded – undo
104 104
      */
105 105
     public function getFailedEvents(string $id, int $limit = null, \DateTime $createdBefore = null)
106 106
     {
107
-        $args = [];
107
+        $args = [ ];
108 108
         if (null !== $limit) {
109
-            $args['limit'] = $limit;
109
+            $args[ 'limit' ] = $limit;
110 110
         }
111 111
         if (null !== $limit) {
112
-            $args['created_before'] = $createdBefore->format(\DateTime::ISO8601);
112
+            $args[ 'created_before' ] = $createdBefore->format(\DateTime::ISO8601);
113 113
         }
114 114
 
115 115
         $query = http_build_query($args);
116 116
 
117 117
         $endpoint = self::ENDPOINT.'/'.$id.'/failed-events';
118
-        $endpoint = implode('?', array_filter([$endpoint, $query]));
118
+        $endpoint = implode('?', array_filter([ $endpoint, $query ]));
119 119
 
120 120
         return $this->client->get($endpoint);
121 121
     }
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param string $mode
95 95
      * @param array $clientOptions
96 96
      */
97
-    public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = [])
97
+    public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = [ ])
98 98
     {
99 99
         $this->accessToken = $accessToken;
100 100
         $this->mode = $mode;
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function post($endpoint, $json)
164 164
     {
165
-        $response = $this->httpClient->request('POST', $this->getBaseUrl().$endpoint, ['json' => $json]);
165
+        $response = $this->httpClient->request('POST', $this->getBaseUrl().$endpoint, [ 'json' => $json ]);
166 166
 
167 167
         return $this->handleResponse($response);
168 168
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function patch($endpoint, $json)
177 177
     {
178
-        $response = $this->httpClient->request('PATCH', $this->getBaseUrl().$endpoint, ['json' => $json]);
178
+        $response = $this->httpClient->request('PATCH', $this->getBaseUrl().$endpoint, [ 'json' => $json ]);
179 179
 
180 180
         return $this->handleResponse($response);
181 181
     }
Please login to merge, or discard this patch.