Completed
Pull Request — master (#27)
by
unknown
03:51
created
src/Exceptions/ApiException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
      public static function create(RequestException $e) {
31 31
 
32
-         if($response = $e->getResponse()) {
32
+         if ($response = $e->getResponse()) {
33 33
              
34 34
              switch ($response->getStatusCode()) {
35 35
                  case 400:
Please login to merge, or discard this patch.
src/Resources/Ticket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,9 +152,9 @@
 block discarded – undo
152 152
      */
153 153
     public function search(string $filtersQuery)
154 154
     {
155
-        $end = '/search'.$this->endpoint();
155
+        $end = '/search' . $this->endpoint();
156 156
         $query = [
157
-            'query' => '"'.$filtersQuery.'"',
157
+            'query' => '"' . $filtersQuery . '"',
158 158
         ];
159 159
         return $this->api()->request('GET', $end, null, $query);
160 160
     }
Please login to merge, or discard this patch.
src/Api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,13 +228,13 @@
 block discarded – undo
228 228
 			}
229 229
 
230 230
 			$multiparts = [];
231
-			foreach($attachments as $attachment) {
231
+			foreach ($attachments as $attachment) {
232 232
 				$multiparts[] = [
233 233
 					'name' => 'attachments[]',
234 234
 					'contents' => $attachment, // $attachment is a resource from fopen('/path/to/file', 'r')
235 235
 				];
236 236
 			}
237
-			foreach($data as $key => $value) {
237
+			foreach ($data as $key => $value) {
238 238
 				$multiparts[] = [
239 239
 					'name' => $key,
240 240
 					'contents' => $value,
Please login to merge, or discard this patch.