GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a8e9a1...c7f753 )
by Romain
05:40
created
src/Strime/Slackify/Api/Api.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
         // Set the arguments of the request
38 38
         $arguments = array();
39 39
 
40
-        if($error != NULL) {
40
+        if ($error != NULL) {
41 41
             $arguments["error"] = $error;
42 42
         }
43
-        if($foo != NULL) {
43
+        if ($foo != NULL) {
44 44
             $arguments["foo"] = $foo;
45 45
         }
46 46
 
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
         try {
51 51
             $client = new \GuzzleHttp\Client();
52 52
             $json_response = $client->request('GET', $this->getUrl(), []);
53
-            $response = json_decode( $json_response->getBody() );
53
+            $response = json_decode($json_response->getBody());
54 54
         }
55 55
         catch (RequestException $e) {
56
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
56
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
57 57
         }
58 58
 
59
-        if($response->{'ok'} === FALSE) {
60
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
59
+        if ($response->{'ok'} === FALSE) {
60
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
61 61
         }
62 62
 
63 63
         return $this;
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Groups.php 1 patch
Spacing   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
         try {
42 42
             $client = new \GuzzleHttp\Client();
43 43
             $json_response = $client->request('GET', $this->getUrl(), []);
44
-            $response = json_decode( $json_response->getBody() );
44
+            $response = json_decode($json_response->getBody());
45 45
         }
46 46
         catch (RequestException $e) {
47
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
47
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
48 48
         }
49 49
 
50
-        if($response->{'ok'} === FALSE) {
51
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
50
+        if ($response->{'ok'} === FALSE) {
51
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
52 52
         }
53 53
 
54 54
         return $this;
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
         try {
82 82
             $client = new \GuzzleHttp\Client();
83 83
             $json_response = $client->request('GET', $this->getUrl(), []);
84
-            $response = json_decode( $json_response->getBody() );
84
+            $response = json_decode($json_response->getBody());
85 85
         }
86 86
         catch (RequestException $e) {
87
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
87
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
88 88
         }
89 89
 
90
-        if($response->{'ok'} === FALSE) {
91
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
90
+        if ($response->{'ok'} === FALSE) {
91
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
92 92
         }
93 93
 
94 94
         return $json_response->getBody();
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
         try {
122 122
             $client = new \GuzzleHttp\Client();
123 123
             $json_response = $client->request('GET', $this->getUrl(), []);
124
-            $response = json_decode( $json_response->getBody() );
124
+            $response = json_decode($json_response->getBody());
125 125
         }
126 126
         catch (RequestException $e) {
127
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
127
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
128 128
         }
129 129
 
130
-        if($response->{'ok'} === FALSE) {
131
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
130
+        if ($response->{'ok'} === FALSE) {
131
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
132 132
         }
133 133
 
134 134
         return $json_response->getBody();
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
         try {
162 162
             $client = new \GuzzleHttp\Client();
163 163
             $json_response = $client->request('GET', $this->getUrl(), []);
164
-            $response = json_decode( $json_response->getBody() );
164
+            $response = json_decode($json_response->getBody());
165 165
         }
166 166
         catch (RequestException $e) {
167
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
167
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
168 168
         }
169 169
 
170
-        if($response->{'ok'} === FALSE) {
171
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
170
+        if ($response->{'ok'} === FALSE) {
171
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
172 172
         }
173 173
 
174 174
         return $json_response->getBody();
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
             "channel" => $channel,
216 216
             "latest" => $latest,
217 217
             "oldest" => $oldest,
218
-            "inclusive" => (string)$inclusive,
219
-            "count" => (string)$count,
220
-            "unreads" => (string)$unreads
218
+            "inclusive" => (string) $inclusive,
219
+            "count" => (string) $count,
220
+            "unreads" => (string) $unreads
221 221
         );
222 222
 
223 223
         $this->setUrl("groups.history", $arguments);
@@ -226,14 +226,14 @@  discard block
 block discarded – undo
226 226
         try {
227 227
             $client = new \GuzzleHttp\Client();
228 228
             $json_response = $client->request('GET', $this->getUrl(), []);
229
-            $response = json_decode( $json_response->getBody() );
229
+            $response = json_decode($json_response->getBody());
230 230
         }
231 231
         catch (RequestException $e) {
232
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
232
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
233 233
         }
234 234
 
235
-        if($response->{'ok'} === FALSE) {
236
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
235
+        if ($response->{'ok'} === FALSE) {
236
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
237 237
         }
238 238
 
239 239
         return $json_response->getBody();
@@ -266,14 +266,14 @@  discard block
 block discarded – undo
266 266
         try {
267 267
             $client = new \GuzzleHttp\Client();
268 268
             $json_response = $client->request('GET', $this->getUrl(), []);
269
-            $response = json_decode( $json_response->getBody() );
269
+            $response = json_decode($json_response->getBody());
270 270
         }
271 271
         catch (RequestException $e) {
272
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
272
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
273 273
         }
274 274
 
275
-        if($response->{'ok'} === FALSE) {
276
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
275
+        if ($response->{'ok'} === FALSE) {
276
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
277 277
         }
278 278
 
279 279
         return $json_response->getBody();
@@ -311,14 +311,14 @@  discard block
 block discarded – undo
311 311
         try {
312 312
             $client = new \GuzzleHttp\Client();
313 313
             $json_response = $client->request('GET', $this->getUrl(), []);
314
-            $response = json_decode( $json_response->getBody() );
314
+            $response = json_decode($json_response->getBody());
315 315
         }
316 316
         catch (RequestException $e) {
317
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
317
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
318 318
         }
319 319
 
320
-        if($response->{'ok'} === FALSE) {
321
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
320
+        if ($response->{'ok'} === FALSE) {
321
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
322 322
         }
323 323
 
324 324
         return $json_response->getBody();
@@ -356,14 +356,14 @@  discard block
 block discarded – undo
356 356
         try {
357 357
             $client = new \GuzzleHttp\Client();
358 358
             $json_response = $client->request('GET', $this->getUrl(), []);
359
-            $response = json_decode( $json_response->getBody() );
359
+            $response = json_decode($json_response->getBody());
360 360
         }
361 361
         catch (RequestException $e) {
362
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
362
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
363 363
         }
364 364
 
365
-        if($response->{'ok'} === FALSE) {
366
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
365
+        if ($response->{'ok'} === FALSE) {
366
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
367 367
         }
368 368
 
369 369
         return $this;
@@ -396,14 +396,14 @@  discard block
 block discarded – undo
396 396
         try {
397 397
             $client = new \GuzzleHttp\Client();
398 398
             $json_response = $client->request('GET', $this->getUrl(), []);
399
-            $response = json_decode( $json_response->getBody() );
399
+            $response = json_decode($json_response->getBody());
400 400
         }
401 401
         catch (RequestException $e) {
402
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
402
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
403 403
         }
404 404
 
405
-        if($response->{'ok'} === FALSE) {
406
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
405
+        if ($response->{'ok'} === FALSE) {
406
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
407 407
         }
408 408
 
409 409
         return $this;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
 
428 428
         // Set the arguments of the request
429 429
         $arguments = array(
430
-            "exclude_archived" => (string)$exclude_archived
430
+            "exclude_archived" => (string) $exclude_archived
431 431
         );
432 432
 
433 433
         $this->setUrl("groups.list", $arguments);
@@ -436,14 +436,14 @@  discard block
 block discarded – undo
436 436
         try {
437 437
             $client = new \GuzzleHttp\Client();
438 438
             $json_response = $client->request('GET', $this->getUrl(), []);
439
-            $response = json_decode( $json_response->getBody() );
439
+            $response = json_decode($json_response->getBody());
440 440
         }
441 441
         catch (RequestException $e) {
442
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
442
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
443 443
         }
444 444
 
445
-        if($response->{'ok'} === FALSE) {
446
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
445
+        if ($response->{'ok'} === FALSE) {
446
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
447 447
         }
448 448
 
449 449
         return $json_response->getBody();
@@ -481,14 +481,14 @@  discard block
 block discarded – undo
481 481
         try {
482 482
             $client = new \GuzzleHttp\Client();
483 483
             $json_response = $client->request('GET', $this->getUrl(), []);
484
-            $response = json_decode( $json_response->getBody() );
484
+            $response = json_decode($json_response->getBody());
485 485
         }
486 486
         catch (RequestException $e) {
487
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
487
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
488 488
         }
489 489
 
490
-        if($response->{'ok'} === FALSE) {
491
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
490
+        if ($response->{'ok'} === FALSE) {
491
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
492 492
         }
493 493
 
494 494
         return $this;
@@ -521,14 +521,14 @@  discard block
 block discarded – undo
521 521
         try {
522 522
             $client = new \GuzzleHttp\Client();
523 523
             $json_response = $client->request('GET', $this->getUrl(), []);
524
-            $response = json_decode( $json_response->getBody() );
524
+            $response = json_decode($json_response->getBody());
525 525
         }
526 526
         catch (RequestException $e) {
527
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
527
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
528 528
         }
529 529
 
530
-        if($response->{'ok'} === FALSE) {
531
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
530
+        if ($response->{'ok'} === FALSE) {
531
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
532 532
         }
533 533
 
534 534
         return $json_response->getBody();
@@ -566,14 +566,14 @@  discard block
 block discarded – undo
566 566
         try {
567 567
             $client = new \GuzzleHttp\Client();
568 568
             $json_response = $client->request('GET', $this->getUrl(), []);
569
-            $response = json_decode( $json_response->getBody() );
569
+            $response = json_decode($json_response->getBody());
570 570
         }
571 571
         catch (RequestException $e) {
572
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
572
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
573 573
         }
574 574
 
575
-        if($response->{'ok'} === FALSE) {
576
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
575
+        if ($response->{'ok'} === FALSE) {
576
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
577 577
         }
578 578
 
579 579
         return $json_response->getBody();
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
         // Set the arguments of the request
603 603
         $arguments = array(
604 604
             "channel" => $channel,
605
-            "thread_ts" => (string)$thread_ts
605
+            "thread_ts" => (string) $thread_ts
606 606
         );
607 607
 
608 608
         $this->setUrl("groups.replies", $arguments);
@@ -611,14 +611,14 @@  discard block
 block discarded – undo
611 611
         try {
612 612
             $client = new \GuzzleHttp\Client();
613 613
             $json_response = $client->request('GET', $this->getUrl(), []);
614
-            $response = json_decode( $json_response->getBody() );
614
+            $response = json_decode($json_response->getBody());
615 615
         }
616 616
         catch (RequestException $e) {
617
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
617
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
618 618
         }
619 619
 
620
-        if($response->{'ok'} === FALSE) {
621
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
620
+        if ($response->{'ok'} === FALSE) {
621
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
622 622
         }
623 623
 
624 624
         return $json_response->getBody();
@@ -656,14 +656,14 @@  discard block
 block discarded – undo
656 656
         try {
657 657
             $client = new \GuzzleHttp\Client();
658 658
             $json_response = $client->request('GET', $this->getUrl(), []);
659
-            $response = json_decode( $json_response->getBody() );
659
+            $response = json_decode($json_response->getBody());
660 660
         }
661 661
         catch (RequestException $e) {
662
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
662
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
663 663
         }
664 664
 
665
-        if($response->{'ok'} === FALSE) {
666
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
665
+        if ($response->{'ok'} === FALSE) {
666
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
667 667
         }
668 668
 
669 669
         return $this;
@@ -701,14 +701,14 @@  discard block
 block discarded – undo
701 701
         try {
702 702
             $client = new \GuzzleHttp\Client();
703 703
             $json_response = $client->request('GET', $this->getUrl(), []);
704
-            $response = json_decode( $json_response->getBody() );
704
+            $response = json_decode($json_response->getBody());
705 705
         }
706 706
         catch (RequestException $e) {
707
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
707
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
708 708
         }
709 709
 
710
-        if($response->{'ok'} === FALSE) {
711
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
710
+        if ($response->{'ok'} === FALSE) {
711
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
712 712
         }
713 713
 
714 714
         return $this;
@@ -741,14 +741,14 @@  discard block
 block discarded – undo
741 741
         try {
742 742
             $client = new \GuzzleHttp\Client();
743 743
             $json_response = $client->request('GET', $this->getUrl(), []);
744
-            $response = json_decode( $json_response->getBody() );
744
+            $response = json_decode($json_response->getBody());
745 745
         }
746 746
         catch (RequestException $e) {
747
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
747
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
748 748
         }
749 749
 
750
-        if($response->{'ok'} === FALSE) {
751
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
750
+        if ($response->{'ok'} === FALSE) {
751
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
752 752
         }
753 753
 
754 754
         return $this;
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Dnd.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
         try {
31 31
             $client = new \GuzzleHttp\Client();
32 32
             $json_response = $client->request('GET', $this->getUrl(), []);
33
-            $response = json_decode( $json_response->getBody() );
33
+            $response = json_decode($json_response->getBody());
34 34
         }
35 35
         catch (RequestException $e) {
36
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
36
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
37 37
         }
38 38
 
39
-        if($response->{'ok'} === FALSE) {
40
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
39
+        if ($response->{'ok'} === FALSE) {
40
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
41 41
         }
42 42
 
43 43
         return $this;
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
         try {
58 58
             $client = new \GuzzleHttp\Client();
59 59
             $json_response = $client->request('GET', $this->getUrl(), []);
60
-            $response = json_decode( $json_response->getBody() );
60
+            $response = json_decode($json_response->getBody());
61 61
         }
62 62
         catch (RequestException $e) {
63
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
63
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
64 64
         }
65 65
 
66
-        if($response->{'ok'} === FALSE) {
67
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
66
+        if ($response->{'ok'} === FALSE) {
67
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
68 68
         }
69 69
 
70 70
         return $json_response->getBody();
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         // Set the arguments of the request
88 88
         $arguments = array();
89 89
 
90
-        if($user != NULL) {
90
+        if ($user != NULL) {
91 91
             $arguments["user"] = $user;
92 92
         }
93 93
 
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
         try {
98 98
             $client = new \GuzzleHttp\Client();
99 99
             $json_response = $client->request('GET', $this->getUrl(), []);
100
-            $response = json_decode( $json_response->getBody() );
100
+            $response = json_decode($json_response->getBody());
101 101
         }
102 102
         catch (RequestException $e) {
103
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
103
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
104 104
         }
105 105
 
106
-        if($response->{'ok'} === FALSE) {
107
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
106
+        if ($response->{'ok'} === FALSE) {
107
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
108 108
         }
109 109
 
110 110
         return $json_response->getBody();
@@ -135,14 +135,14 @@  discard block
 block discarded – undo
135 135
         try {
136 136
             $client = new \GuzzleHttp\Client();
137 137
             $json_response = $client->request('GET', $this->getUrl(), []);
138
-            $response = json_decode( $json_response->getBody() );
138
+            $response = json_decode($json_response->getBody());
139 139
         }
140 140
         catch (RequestException $e) {
141
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
141
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
142 142
         }
143 143
 
144
-        if($response->{'ok'} === FALSE) {
145
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
144
+        if ($response->{'ok'} === FALSE) {
145
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
146 146
         }
147 147
 
148 148
         return $json_response->getBody();
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         // Set the arguments of the request
166 166
         $arguments = array();
167 167
 
168
-        if($user != NULL) {
168
+        if ($user != NULL) {
169 169
             $arguments["users"] = $users;
170 170
         }
171 171
 
@@ -175,14 +175,14 @@  discard block
 block discarded – undo
175 175
         try {
176 176
             $client = new \GuzzleHttp\Client();
177 177
             $json_response = $client->request('GET', $this->getUrl(), []);
178
-            $response = json_decode( $json_response->getBody() );
178
+            $response = json_decode($json_response->getBody());
179 179
         }
180 180
         catch (RequestException $e) {
181
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
181
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
182 182
         }
183 183
 
184
-        if($response->{'ok'} === FALSE) {
185
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
184
+        if ($response->{'ok'} === FALSE) {
185
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
186 186
         }
187 187
 
188 188
         return $json_response->getBody();
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Pin.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             $arguments["file_comment"] = $file_comment;
55 55
         }
56 56
         if ($timestamp != NULL) {
57
-            $arguments["timestamp"] = (string)$timestamp;
57
+            $arguments["timestamp"] = (string) $timestamp;
58 58
         }
59 59
 
60 60
         $this->setUrl("pin.add", $arguments);
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
         try {
64 64
             $client = new \GuzzleHttp\Client();
65 65
             $json_response = $client->request('GET', $this->getUrl(), []);
66
-            $response = json_decode( $json_response->getBody() );
66
+            $response = json_decode($json_response->getBody());
67 67
         }
68 68
         catch (RequestException $e) {
69
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
69
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
70 70
         }
71 71
 
72
-        if($response->{'ok'} === FALSE) {
73
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
72
+        if ($response->{'ok'} === FALSE) {
73
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
74 74
         }
75 75
 
76 76
         return $this;
@@ -103,14 +103,14 @@  discard block
 block discarded – undo
103 103
         try {
104 104
             $client = new \GuzzleHttp\Client();
105 105
             $json_response = $client->request('GET', $this->getUrl(), []);
106
-            $response = json_decode( $json_response->getBody() );
106
+            $response = json_decode($json_response->getBody());
107 107
         }
108 108
         catch (RequestException $e) {
109
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
109
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
110 110
         }
111 111
 
112
-        if($response->{'ok'} === FALSE) {
113
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
112
+        if ($response->{'ok'} === FALSE) {
113
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
114 114
         }
115 115
 
116 116
         return $json_response->getBody();
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $arguments["file_comment"] = $file_comment;
157 157
         }
158 158
         if ($timestamp != NULL) {
159
-            $arguments["timestamp"] = (string)$timestamp;
159
+            $arguments["timestamp"] = (string) $timestamp;
160 160
         }
161 161
 
162 162
         $this->setUrl("pin.remove", $arguments);
@@ -165,14 +165,14 @@  discard block
 block discarded – undo
165 165
         try {
166 166
             $client = new \GuzzleHttp\Client();
167 167
             $json_response = $client->request('GET', $this->getUrl(), []);
168
-            $response = json_decode( $json_response->getBody() );
168
+            $response = json_decode($json_response->getBody());
169 169
         }
170 170
         catch (RequestException $e) {
171
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
171
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
172 172
         }
173 173
 
174
-        if($response->{'ok'} === FALSE) {
175
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
174
+        if ($response->{'ok'} === FALSE) {
175
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
176 176
         }
177 177
 
178 178
         return $this;
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Stars.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $arguments["channel"] = $channel;
56 56
         }
57 57
         if ($timestamp != NULL) {
58
-            $arguments["timestamp"] = (string)$timestamp;
58
+            $arguments["timestamp"] = (string) $timestamp;
59 59
         }
60 60
 
61 61
         $this->setUrl("stars.add", $arguments);
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
         try {
65 65
             $client = new \GuzzleHttp\Client();
66 66
             $json_response = $client->request('GET', $this->getUrl(), []);
67
-            $response = json_decode( $json_response->getBody() );
67
+            $response = json_decode($json_response->getBody());
68 68
         }
69 69
         catch (RequestException $e) {
70
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
70
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
71 71
         }
72 72
 
73
-        if($response->{'ok'} === FALSE) {
74
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
73
+        if ($response->{'ok'} === FALSE) {
74
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
75 75
         }
76 76
 
77 77
         return $this;
@@ -109,14 +109,14 @@  discard block
 block discarded – undo
109 109
         try {
110 110
             $client = new \GuzzleHttp\Client();
111 111
             $json_response = $client->request('GET', $this->getUrl(), []);
112
-            $response = json_decode( $json_response->getBody() );
112
+            $response = json_decode($json_response->getBody());
113 113
         }
114 114
         catch (RequestException $e) {
115
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
115
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
116 116
         }
117 117
 
118
-        if($response->{'ok'} === FALSE) {
119
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
118
+        if ($response->{'ok'} === FALSE) {
119
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
120 120
         }
121 121
 
122 122
         return $json_response->getBody();
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $arguments["channel"] = $channel;
164 164
         }
165 165
         if ($timestamp != NULL) {
166
-            $arguments["timestamp"] = (float)$timestamp;
166
+            $arguments["timestamp"] = (float) $timestamp;
167 167
         }
168 168
 
169 169
         $this->setUrl("stars.remove", $arguments);
@@ -172,14 +172,14 @@  discard block
 block discarded – undo
172 172
         try {
173 173
             $client = new \GuzzleHttp\Client();
174 174
             $json_response = $client->request('GET', $this->getUrl(), []);
175
-            $response = json_decode( $json_response->getBody() );
175
+            $response = json_decode($json_response->getBody());
176 176
         }
177 177
         catch (RequestException $e) {
178
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
178
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
179 179
         }
180 180
 
181
-        if($response->{'ok'} === FALSE) {
182
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
181
+        if ($response->{'ok'} === FALSE) {
182
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
183 183
         }
184 184
 
185 185
         return $this;
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Auth.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             "test" => $test
40 40
         );
41 41
 
42
-        if($token != NULL) {
42
+        if ($token != NULL) {
43 43
             $arguments["token"] = $token;
44 44
         }
45 45
 
@@ -49,14 +49,14 @@  discard block
 block discarded – undo
49 49
         try {
50 50
             $client = new \GuzzleHttp\Client();
51 51
             $json_response = $client->request('GET', $this->getUrl(), []);
52
-            $response = json_decode( $json_response->getBody() );
52
+            $response = json_decode($json_response->getBody());
53 53
         }
54 54
         catch (RequestException $e) {
55
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
55
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
56 56
         }
57 57
 
58
-        if($response->{'ok'} === FALSE) {
59
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
58
+        if ($response->{'ok'} === FALSE) {
59
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
60 60
         }
61 61
 
62 62
         return $this;
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
         try {
77 77
             $client = new \GuzzleHttp\Client();
78 78
             $json_response = $client->request('GET', $this->getUrl(), []);
79
-            $response = json_decode( $json_response->getBody() );
79
+            $response = json_decode($json_response->getBody());
80 80
         }
81 81
         catch (RequestException $e) {
82
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
82
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
83 83
         }
84 84
 
85
-        if($response->{'ok'} === FALSE) {
86
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
85
+        if ($response->{'ok'} === FALSE) {
86
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
87 87
         }
88 88
 
89 89
         return $json_response->getBody();
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Emoji.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
         try {
31 31
             $client = new \GuzzleHttp\Client();
32 32
             $json_response = $client->request('GET', $this->getUrl(), []);
33
-            $response = json_decode( $json_response->getBody() );
33
+            $response = json_decode($json_response->getBody());
34 34
         }
35 35
         catch (RequestException $e) {
36
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
36
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
37 37
         }
38 38
 
39
-        if($response->{'ok'} === FALSE) {
40
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
39
+        if ($response->{'ok'} === FALSE) {
40
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
41 41
         }
42 42
 
43 43
         return $json_response->getBody();
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Reactions.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $arguments["channel"] = $channel;
62 62
         }
63 63
         if ($timestamp != NULL) {
64
-            $arguments["timestamp"] = (float)$timestamp;
64
+            $arguments["timestamp"] = (float) $timestamp;
65 65
         }
66 66
 
67 67
         $this->setUrl("reactions.add", $arguments);
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
         try {
71 71
             $client = new \GuzzleHttp\Client();
72 72
             $json_response = $client->request('GET', $this->getUrl(), []);
73
-            $response = json_decode( $json_response->getBody() );
73
+            $response = json_decode($json_response->getBody());
74 74
         }
75 75
         catch (RequestException $e) {
76
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
76
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
77 77
         }
78 78
 
79
-        if($response->{'ok'} === FALSE) {
80
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
79
+        if ($response->{'ok'} === FALSE) {
80
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
81 81
         }
82 82
 
83 83
         return $this;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $arguments["channel"] = $channel;
129 129
         }
130 130
         if ($timestamp != NULL) {
131
-            $arguments["timestamp"] = (string)$timestamp;
131
+            $arguments["timestamp"] = (string) $timestamp;
132 132
         }
133 133
         if ($full != NULL) {
134 134
             $arguments["full"] = $full;
@@ -140,14 +140,14 @@  discard block
 block discarded – undo
140 140
         try {
141 141
             $client = new \GuzzleHttp\Client();
142 142
             $json_response = $client->request('GET', $this->getUrl(), []);
143
-            $response = json_decode( $json_response->getBody() );
143
+            $response = json_decode($json_response->getBody());
144 144
         }
145 145
         catch (RequestException $e) {
146
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
146
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
147 147
         }
148 148
 
149
-        if($response->{'ok'} === FALSE) {
150
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
149
+        if ($response->{'ok'} === FALSE) {
150
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
151 151
         }
152 152
 
153 153
         return $json_response->getBody();
@@ -187,10 +187,10 @@  discard block
 block discarded – undo
187 187
             "page" => $page
188 188
         );
189 189
 
190
-        if($user != NULL) {
190
+        if ($user != NULL) {
191 191
             $arguments["user"] = $user;
192 192
         }
193
-        if($full != NULL) {
193
+        if ($full != NULL) {
194 194
             $arguments["full"] = $full;
195 195
         }
196 196
 
@@ -200,14 +200,14 @@  discard block
 block discarded – undo
200 200
         try {
201 201
             $client = new \GuzzleHttp\Client();
202 202
             $json_response = $client->request('GET', $this->getUrl(), []);
203
-            $response = json_decode( $json_response->getBody() );
203
+            $response = json_decode($json_response->getBody());
204 204
         }
205 205
         catch (RequestException $e) {
206
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
206
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
207 207
         }
208 208
 
209
-        if($response->{'ok'} === FALSE) {
210
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
209
+        if ($response->{'ok'} === FALSE) {
210
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
211 211
         }
212 212
 
213 213
         return $json_response->getBody();
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             $arguments["channel"] = $channel;
261 261
         }
262 262
         if ($timestamp != NULL) {
263
-            $arguments["timestamp"] = (string)$timestamp;
263
+            $arguments["timestamp"] = (string) $timestamp;
264 264
         }
265 265
 
266 266
         $this->setUrl("reactions.remove", $arguments);
@@ -269,14 +269,14 @@  discard block
 block discarded – undo
269 269
         try {
270 270
             $client = new \GuzzleHttp\Client();
271 271
             $json_response = $client->request('GET', $this->getUrl(), []);
272
-            $response = json_decode( $json_response->getBody() );
272
+            $response = json_decode($json_response->getBody());
273 273
         }
274 274
         catch (RequestException $e) {
275
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
275
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
276 276
         }
277 277
 
278
-        if($response->{'ok'} === FALSE) {
279
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
278
+        if ($response->{'ok'} === FALSE) {
279
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
280 280
         }
281 281
 
282 282
         return $this;
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/FilesComments.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             "comment" => $comment
45 45
         );
46 46
 
47
-        if($channel != NULL) {
47
+        if ($channel != NULL) {
48 48
             $arguments["channel"] = $channel;
49 49
         }
50 50
 
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
         try {
55 55
             $client = new \GuzzleHttp\Client();
56 56
             $json_response = $client->request('GET', $this->getUrl(), []);
57
-            $response = json_decode( $json_response->getBody() );
57
+            $response = json_decode($json_response->getBody());
58 58
         }
59 59
         catch (RequestException $e) {
60
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
60
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
61 61
         }
62 62
 
63
-        if($response->{'ok'} === FALSE) {
64
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
63
+        if ($response->{'ok'} === FALSE) {
64
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
65 65
         }
66 66
 
67 67
         return $json_response->getBody();
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
         try {
98 98
             $client = new \GuzzleHttp\Client();
99 99
             $json_response = $client->request('GET', $this->getUrl(), []);
100
-            $response = json_decode( $json_response->getBody() );
100
+            $response = json_decode($json_response->getBody());
101 101
         }
102 102
         catch (RequestException $e) {
103
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
103
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
104 104
         }
105 105
 
106
-        if($response->{'ok'} === FALSE) {
107
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
106
+        if ($response->{'ok'} === FALSE) {
107
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
108 108
         }
109 109
 
110 110
         return $this;
@@ -145,14 +145,14 @@  discard block
 block discarded – undo
145 145
         try {
146 146
             $client = new \GuzzleHttp\Client();
147 147
             $json_response = $client->request('GET', $this->getUrl(), []);
148
-            $response = json_decode( $json_response->getBody() );
148
+            $response = json_decode($json_response->getBody());
149 149
         }
150 150
         catch (RequestException $e) {
151
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
151
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
152 152
         }
153 153
 
154
-        if($response->{'ok'} === FALSE) {
155
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
154
+        if ($response->{'ok'} === FALSE) {
155
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
156 156
         }
157 157
 
158 158
         return $json_response->getBody();
Please login to merge, or discard this patch.