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 ( 30655b...a8e9a1 )
by Romain
04:44
created
src/Strime/Slackify/Api/Files.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param  string $file
63 63
      * @param  integer $count
64 64
      * @param  integer $page
65
-     * @return Files
65
+     * @return \Psr\Http\Message\StreamInterface
66 66
      */
67 67
     public function info($file, $count = 100, $page = 1) {
68 68
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @param  string $types
116 116
      * @param  integer $count
117 117
      * @param  integer $page
118
-     * @return Files
118
+     * @return \Psr\Http\Message\StreamInterface
119 119
      */
120 120
     public function list_files($user = NULL, $channel = NULL, $ts_from = "now", $ts_to = "all", $types = "all", $count = 100, $page = 1) {
121 121
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * {@inheritdoc}
223 223
      *
224 224
      * @param  string $file
225
-     * @return Files
225
+     * @return \Psr\Http\Message\StreamInterface
226 226
      */
227 227
     public function sharedPublicURL($file) {
228 228
 
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Pin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      * {@inheritdoc}
84 84
      *
85 85
      * @param  string $channel
86
-     * @return string
86
+     * @return \Psr\Http\Message\StreamInterface
87 87
      */
88 88
     public function list_pin($channel) {
89 89
 
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Reactions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param  string $channel
95 95
      * @param  float $timestamp
96 96
      * @param  boolean $full
97
-     * @return Reactions
97
+     * @return \Psr\Http\Message\StreamInterface
98 98
      */
99 99
     public function get($file = NULL, $file_comment = NULL, $channel = NULL, $timestamp = NULL, $full = NULL) {
100 100
 
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
      *
162 162
      * @param  string $user
163 163
      * @param  boolean $full
164
-     * @param  string $count
165
-     * @param  string $page
166
-     * @return Reactions
164
+     * @param  integer $count
165
+     * @param  integer $page
166
+     * @return \Psr\Http\Message\StreamInterface
167 167
      */
168 168
     public function list_reactions($user = NULL, $full = NULL, $count = 100, $page = 1) {
169 169
 
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Reminders.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param  string $text
24 24
      * @param  integer $time
25 25
      * @param  string $user
26
-     * @return Reminders
26
+     * @return \Psr\Http\Message\StreamInterface
27 27
      */
28 28
     public function add($text, $time, $user = NULL) {
29 29
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * {@inheritdoc}
155 155
      *
156 156
      * @param  string $reminder
157
-     * @return string
157
+     * @return \Psr\Http\Message\StreamInterface
158 158
      */
159 159
     public function info($reminder) {
160 160
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     /**
194 194
      * {@inheritdoc}
195 195
      *
196
-     * @return string
196
+     * @return \Psr\Http\Message\StreamInterface
197 197
      */
198 198
     public function list_reminders() {
199 199
 
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Stars.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      *
86 86
      * @param  int $count
87 87
      * @param  int $page
88
-     * @return string
88
+     * @return \Psr\Http\Message\StreamInterface
89 89
      */
90 90
     public function list_stars($count = 100, $page = 1) {
91 91
 
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/UserGroups.php 2 patches
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param  string $description
26 26
      * @param  string $channels
27 27
      * @param  bool $include_count
28
-     * @return string
28
+     * @return \Psr\Http\Message\StreamInterface
29 29
      */
30 30
     public function create($name, $handle = NULL, $description = NULL, $channels = NULL, $include_count = NULL) {
31 31
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @param  string $usergroup
93 93
      * @param  bool $include_count
94
-     * @return string
94
+     * @return \Psr\Http\Message\StreamInterface
95 95
      */
96 96
     public function disable($usergroup, $include_count = NULL) {
97 97
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @param  string $usergroup
141 141
      * @param  bool $include_count
142
-     * @return string
142
+     * @return \Psr\Http\Message\StreamInterface
143 143
      */
144 144
     public function enable($usergroup, $include_count = NULL) {
145 145
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * @param  bool $include_disabled
190 190
      * @param  bool $include_count
191 191
      * @param  bool $include_users
192
-     * @return string
192
+     * @return \Psr\Http\Message\StreamInterface
193 193
      */
194 194
     public function list_usergroups($include_disabled = NULL, $include_count = NULL, $include_users = NULL) {
195 195
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * @param  string $description
249 249
      * @param  string $channels
250 250
      * @param  bool $include_count
251
-     * @return string
251
+     * @return \Psr\Http\Message\StreamInterface
252 252
      */
253 253
     public function update($usergroup, $name = NULL, $handle = NULL, $description = NULL, $channels = NULL, $include_count = NULL) {
254 254
 
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      *
321 321
      * @param  string $usergroup
322 322
      * @param  bool $include_disabled
323
-     * @return string
323
+     * @return \Psr\Http\Message\StreamInterface
324 324
      */
325 325
     public function usersList($usergroup, $include_disabled = NULL) {
326 326
 
@@ -368,8 +368,7 @@  discard block
 block discarded – undo
368 368
      *
369 369
      * @param  string $usergroup
370 370
      * @param  string $users
371
-     * @param  bool $include_count
372
-     * @return string
371
+     * @return \Psr\Http\Message\StreamInterface
373 372
      */
374 373
     public function usersUpdate($usergroup, $users, $include_disabled = NULL) {
375 374
 
Please login to merge, or discard this patch.
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
         if (!is_string($name) || ($name == NULL)) {
34 34
             throw new InvalidArgumentException("The type of the name variable is not valid.");
35 35
         }
36
-        if (!is_string($handle) &&  ($name != NULL)) {
36
+        if (!is_string($handle) && ($name != NULL)) {
37 37
             throw new InvalidArgumentException("The type of the handle variable is not valid.");
38 38
         }
39
-        if (!is_string($description) &&  ($description != NULL)) {
39
+        if (!is_string($description) && ($description != NULL)) {
40 40
             throw new InvalidArgumentException("The type of the description variable is not valid.");
41 41
         }
42
-        if (!is_string($channels) &&  ($channels != NULL)) {
42
+        if (!is_string($channels) && ($channels != NULL)) {
43 43
             throw new InvalidArgumentException("The type of the channels variable is not valid.");
44 44
         }
45
-        if (!is_bool($include_count) &&  ($include_count != NULL)) {
45
+        if (!is_bool($include_count) && ($include_count != NULL)) {
46 46
             throw new InvalidArgumentException("The type of the channels variable is not valid.");
47 47
         }
48 48
 
@@ -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 $json_response->getBody();
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         if (!is_string($usergroup) || ($usergroup != NULL)) {
100 100
             throw new InvalidArgumentException("The type of the usergroup variable is not valid.");
101 101
         }
102
-        if (!is_bool($include_count) &&  ($include_count != NULL)) {
102
+        if (!is_bool($include_count) && ($include_count != NULL)) {
103 103
             throw new InvalidArgumentException("The type of the include_count variable is not valid.");
104 104
         }
105 105
 
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
         try {
119 119
             $client = new \GuzzleHttp\Client();
120 120
             $json_response = $client->request('GET', $this->getUrl(), []);
121
-            $response = json_decode( $json_response->getBody() );
121
+            $response = json_decode($json_response->getBody());
122 122
         }
123 123
         catch (RequestException $e) {
124
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
124
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
125 125
         }
126 126
 
127
-        if($response->{'ok'} === FALSE) {
128
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
127
+        if ($response->{'ok'} === FALSE) {
128
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
129 129
         }
130 130
 
131 131
         return $json_response->getBody();
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if (!is_string($usergroup) || ($usergroup != NULL)) {
148 148
             throw new InvalidArgumentException("The type of the usergroup variable is not valid.");
149 149
         }
150
-        if (!is_bool($include_count) &&  ($include_count != NULL)) {
150
+        if (!is_bool($include_count) && ($include_count != NULL)) {
151 151
             throw new InvalidArgumentException("The type of the include_count variable is not valid.");
152 152
         }
153 153
 
@@ -166,14 +166,14 @@  discard block
 block discarded – undo
166 166
         try {
167 167
             $client = new \GuzzleHttp\Client();
168 168
             $json_response = $client->request('GET', $this->getUrl(), []);
169
-            $response = json_decode( $json_response->getBody() );
169
+            $response = json_decode($json_response->getBody());
170 170
         }
171 171
         catch (RequestException $e) {
172
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
172
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
173 173
         }
174 174
 
175
-        if($response->{'ok'} === FALSE) {
176
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
175
+        if ($response->{'ok'} === FALSE) {
176
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
177 177
         }
178 178
 
179 179
         return $json_response->getBody();
@@ -194,13 +194,13 @@  discard block
 block discarded – undo
194 194
     public function list_usergroups($include_disabled = NULL, $include_count = NULL, $include_users = NULL) {
195 195
 
196 196
         // Check if the type of the variables is valid.
197
-        if (!is_bool($include_disabled) &&  ($include_disabled != NULL)) {
197
+        if (!is_bool($include_disabled) && ($include_disabled != NULL)) {
198 198
             throw new InvalidArgumentException("The type of the include_disabled variable is not valid.");
199 199
         }
200
-        if (!is_bool($include_count) &&  ($include_count != NULL)) {
200
+        if (!is_bool($include_count) && ($include_count != NULL)) {
201 201
             throw new InvalidArgumentException("The type of the include_count variable is not valid.");
202 202
         }
203
-        if (!is_bool($include_users) &&  ($include_users != NULL)) {
203
+        if (!is_bool($include_users) && ($include_users != NULL)) {
204 204
             throw new InvalidArgumentException("The type of the include_users variable is not valid.");
205 205
         }
206 206
 
@@ -223,14 +223,14 @@  discard block
 block discarded – undo
223 223
         try {
224 224
             $client = new \GuzzleHttp\Client();
225 225
             $json_response = $client->request('GET', $this->getUrl(), []);
226
-            $response = json_decode( $json_response->getBody() );
226
+            $response = json_decode($json_response->getBody());
227 227
         }
228 228
         catch (RequestException $e) {
229
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
229
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
230 230
         }
231 231
 
232
-        if($response->{'ok'} === FALSE) {
233
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
232
+        if ($response->{'ok'} === FALSE) {
233
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
234 234
         }
235 235
 
236 236
         return $json_response->getBody();
@@ -259,16 +259,16 @@  discard block
 block discarded – undo
259 259
         if (!is_string($name) && ($name != NULL)) {
260 260
             throw new InvalidArgumentException("The type of the name variable is not valid.");
261 261
         }
262
-        if (!is_string($handle) &&  ($name != NULL)) {
262
+        if (!is_string($handle) && ($name != NULL)) {
263 263
             throw new InvalidArgumentException("The type of the handle variable is not valid.");
264 264
         }
265
-        if (!is_string($description) &&  ($description != NULL)) {
265
+        if (!is_string($description) && ($description != NULL)) {
266 266
             throw new InvalidArgumentException("The type of the description variable is not valid.");
267 267
         }
268
-        if (!is_string($channels) &&  ($channels != NULL)) {
268
+        if (!is_string($channels) && ($channels != NULL)) {
269 269
             throw new InvalidArgumentException("The type of the channels variable is not valid.");
270 270
         }
271
-        if (!is_bool($include_count) &&  ($include_count != NULL)) {
271
+        if (!is_bool($include_count) && ($include_count != NULL)) {
272 272
             throw new InvalidArgumentException("The type of the include_count variable is not valid.");
273 273
         }
274 274
 
@@ -299,14 +299,14 @@  discard block
 block discarded – undo
299 299
         try {
300 300
             $client = new \GuzzleHttp\Client();
301 301
             $json_response = $client->request('GET', $this->getUrl(), []);
302
-            $response = json_decode( $json_response->getBody() );
302
+            $response = json_decode($json_response->getBody());
303 303
         }
304 304
         catch (RequestException $e) {
305
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
305
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
306 306
         }
307 307
 
308
-        if($response->{'ok'} === FALSE) {
309
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
308
+        if ($response->{'ok'} === FALSE) {
309
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
310 310
         }
311 311
 
312 312
         return $json_response->getBody();
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
         if (!is_string($usergroup) || ($usergroup == NULL)) {
329 329
             throw new InvalidArgumentException("The type of the usergroup variable is not valid.");
330 330
         }
331
-        if (!is_bool($include_disabled) &&  ($include_disabled != NULL)) {
331
+        if (!is_bool($include_disabled) && ($include_disabled != NULL)) {
332 332
             throw new InvalidArgumentException("The type of the include_disabled variable is not valid.");
333 333
         }
334 334
 
@@ -347,14 +347,14 @@  discard block
 block discarded – undo
347 347
         try {
348 348
             $client = new \GuzzleHttp\Client();
349 349
             $json_response = $client->request('GET', $this->getUrl(), []);
350
-            $response = json_decode( $json_response->getBody() );
350
+            $response = json_decode($json_response->getBody());
351 351
         }
352 352
         catch (RequestException $e) {
353
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
353
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
354 354
         }
355 355
 
356
-        if($response->{'ok'} === FALSE) {
357
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
356
+        if ($response->{'ok'} === FALSE) {
357
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
358 358
         }
359 359
 
360 360
         return $json_response->getBody();
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
         if (!is_string($users) || ($users == NULL)) {
381 381
             throw new InvalidArgumentException("The type of the users variable is not valid.");
382 382
         }
383
-        if (!is_bool($include_count) &&  ($include_count != NULL)) {
383
+        if (!is_bool($include_count) && ($include_count != NULL)) {
384 384
             throw new InvalidArgumentException("The type of the include_count variable is not valid.");
385 385
         }
386 386
 
@@ -400,14 +400,14 @@  discard block
 block discarded – undo
400 400
         try {
401 401
             $client = new \GuzzleHttp\Client();
402 402
             $json_response = $client->request('GET', $this->getUrl(), []);
403
-            $response = json_decode( $json_response->getBody() );
403
+            $response = json_decode($json_response->getBody());
404 404
         }
405 405
         catch (RequestException $e) {
406
-            throw new RuntimeException('The request to the API failed: '.$e->getMessage(), $e->getCode(), $e);
406
+            throw new RuntimeException('The request to the API failed: ' . $e->getMessage(), $e->getCode(), $e);
407 407
         }
408 408
 
409
-        if($response->{'ok'} === FALSE) {
410
-            throw new RuntimeException('The request to the API failed: '.$response->{'error'}.".");
409
+        if ($response->{'ok'} === FALSE) {
410
+            throw new RuntimeException('The request to the API failed: ' . $response->{'error'} . ".");
411 411
         }
412 412
 
413 413
         return $json_response->getBody();
Please login to merge, or discard this patch.
src/Strime/Slackify/Api/Users.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * {@inheritdoc}
51 51
      *
52 52
      * @param  string $user
53
-     * @return string
53
+     * @return \Psr\Http\Message\StreamInterface
54 54
      */
55 55
     public function getPresence($user) {
56 56
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * {@inheritdoc}
91 91
      *
92
-     * @return string
92
+     * @return \Psr\Http\Message\StreamInterface
93 93
      */
94 94
     public function identity() {
95 95
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * {@inheritdoc}
121 121
      *
122 122
      * @param  string $user
123
-     * @return string
123
+     * @return \Psr\Http\Message\StreamInterface
124 124
      */
125 125
     public function info($user) {
126 126
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * {@inheritdoc}
161 161
      *
162 162
      * @param  bool $presence
163
-     * @return string
163
+     * @return \Psr\Http\Message\StreamInterface
164 164
      */
165 165
     public function list_users($presence = NULL) {
166 166
 
Please login to merge, or discard this patch.