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.
Test Failed
Push — master ( dcc323...59e78c )
by Krzysztof
02:34
created
src/Orange.php 3 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,6 +225,7 @@  discard block
 block discarded – undo
225 225
      * Find element in HTML Dom
226 226
      *
227 227
      * @param string $content - content to be searched through
228
+     * @param integer $nth
228 229
      * @return object
229 230
      */
230 231
     private function find($content, $selector, $nth = null)
@@ -350,6 +351,8 @@  discard block
 block discarded – undo
350 351
      * Check whether errors have been returned
351 352
      *
352 353
      * @param string $content - response body of a request
354
+     * @param string $selector
355
+     * @param string $function
353 356
      * @return boolean - false if no element described by the selector exists
354 357
      */
355 358
     private function checkErrors($content, $selector, $function = null)
@@ -391,7 +394,6 @@  discard block
 block discarded – undo
391 394
     /**
392 395
      * Checks value for the remaining() and getRemaing() functions
393 396
      *
394
-     * @param string $value - input value
395 397
      * @return array - information about the retrieved information
396 398
      *         boolean 'found' - false if no valuable content (default: false)
397 399
      *         int 'remaining' - remaining amount of SMS (default: 0)
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $this->html = $html;
62 62
 
63 63
         $random = rand(1000000000, 2147483647);
64
-        $this->dynamic_session = $random . $random;
64
+        $this->dynamic_session = $random.$random;
65 65
     }
66 66
 
67 67
     /**
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
     public function login($login, $password)
77 77
     {
78 78
         // Referer header set only to act more like a browser
79
-        $this->session->headers['Referer'] = $this->url . $this->login_request_uri;
79
+        $this->session->headers['Referer'] = $this->url.$this->login_request_uri;
80 80
 
81 81
         $this->session->data = array(
82 82
             '_dyncharset' => 'UTF-8',
83 83
             '_dynSessConf' => $this->dynamic_session,
84
-            '/tp/core/profile/login/ProfileLoginFormHandler.loginErrorURL' => $this->url . $this->login_request_uri,
84
+            '/tp/core/profile/login/ProfileLoginFormHandler.loginErrorURL' => $this->url.$this->login_request_uri,
85 85
             '_D:/tp/core/profile/login/ProfileLoginFormHandler.loginErrorURL' => '',
86
-            '/tp/core/profile/login/ProfileLoginFormHandler.loginSuccessURL' => $this->url . $this->send_request_uri,
86
+            '/tp/core/profile/login/ProfileLoginFormHandler.loginSuccessURL' => $this->url.$this->send_request_uri,
87 87
             '_D:/tp/core/profile/login/ProfileLoginFormHandler.loginSuccessURL' => '',
88 88
             '/tp/core/profile/login/ProfileLoginFormHandler.firstEnter' => 'true',
89 89
             '_D:/tp/core/profile/login/ProfileLoginFormHandler.firstEnter' => '',
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             '_DARGS' => '/ocp/gear/infoportal/portlets/login/login-box.jsp'
98 98
         );
99 99
 
100
-        $response = $this->session->post($this->login_request_uri . $this->login_post_query_string);
100
+        $response = $this->session->post($this->login_request_uri.$this->login_post_query_string);
101 101
 
102 102
         // TODO: Proof, that user logged in (other than token)
103 103
         $this->logged_in = true;
@@ -178,13 +178,13 @@  discard block
 block discarded – undo
178 178
         $this->checkLoggedIn();
179 179
 
180 180
         if (strlen($text) <= 0 || strlen($text) > $this->max_length) {
181
-            throw new \Exception('The message must be longer than 0 characters, but shorter than ' . $this->max_length . ' characters');
181
+            throw new \Exception('The message must be longer than 0 characters, but shorter than '.$this->max_length.' characters');
182 182
         }
183 183
 
184 184
         $this->session->options['timeout'] = 30;
185 185
 
186 186
         // Referer header set only to act more like a browser
187
-        $this->session->headers['Referer'] = $this->url . $this->send_request_uri;
187
+        $this->session->headers['Referer'] = $this->url.$this->send_request_uri;
188 188
 
189 189
         $this->session->data = array(
190 190
             '_dyncharset' => 'UTF-8',
@@ -360,9 +360,9 @@  discard block
 block discarded – undo
360 360
 
361 361
             foreach ($elements as $key => $item) {
362 362
 
363
-                $details = (!empty($function)) ? 'Function ' . $function . ' returned: ' : null;
363
+                $details = (!empty($function)) ? 'Function '.$function.' returned: ' : null;
364 364
 
365
-                throw new \Exception($details . trim($item->plaintext));
365
+                throw new \Exception($details.trim($item->plaintext));
366 366
 
367 367
             }
368 368
 
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
                 } else {
422 422
 
423
-                    $errors[$key] = 'No integer value found for key indexed ' . $key . '. Retrieved value: "' . $value . '"';
423
+                    $errors[$key] = 'No integer value found for key indexed '.$key.'. Retrieved value: "'.$value.'"';
424 424
 
425 425
                 }
426 426
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,9 @@
 block discarded – undo
210 210
 
211 211
         $response = $this->session->post($this->send_post_request_uri);
212 212
 
213
-        if ($multiple) $this->token = $this->token($response->body);
213
+        if ($multiple) {
214
+            $this->token = $this->token($response->body);
215
+        }
214 216
 
215 217
         $result = array(
216 218
             'status_code' => $response->status_code,
Please login to merge, or discard this patch.
examples/multiple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
 
36 36
 } catch (Exception $e) {
37 37
 
38
-    echo '[ERROR] ' . $e->getMessage();
38
+    echo '[ERROR] '.$e->getMessage();
39 39
 
40 40
 }
Please login to merge, or discard this patch.
examples/simple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
     $sms->login($login, $password);
14 14
     $sms->send($recipient, $text);
15 15
 } catch (Exception $e) {
16
-    echo '[ERROR] ' . $e->getMessage();
16
+    echo '[ERROR] '.$e->getMessage();
17 17
 }
Please login to merge, or discard this patch.
examples/advanced.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
             if ($send['remaining']['found'] && $login['remaining']['count'] > $send['remaining']['count']) {
27 27
 
28
-                echo 'SMS was successfully sent. You have ' . $send['remaining']['count'] . ' SMS left this month.';
28
+                echo 'SMS was successfully sent. You have '.$send['remaining']['count'].' SMS left this month.';
29 29
 
30 30
             } elseif ($login['remaining']['count'] === $send['remaining']['count']) {
31 31
 
32
-                echo 'Count of SMS has not changed. Was ' . $login['remaining']['count'] . ' and now is ' . $send['remaining']['count'] . ' . SMS was most probably not sent.';
32
+                echo 'Count of SMS has not changed. Was '.$login['remaining']['count'].' and now is '.$send['remaining']['count'].' . SMS was most probably not sent.';
33 33
 
34 34
             } else {
35 35
 
@@ -47,6 +47,6 @@  discard block
 block discarded – undo
47 47
 
48 48
 } catch (Exception $e) {
49 49
 
50
-    echo '[ERROR] ' . $e->getMessage();
50
+    echo '[ERROR] '.$e->getMessage();
51 51
 
52 52
 }
Please login to merge, or discard this patch.