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 ( 6cc8bd...f0d9c0 )
by Stuart
17:18 queued 08:04
created
src/php/Prose/ExpectsGraphite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
         }
217 217
 
218 218
         // what is the average?
219
-        $average = $total/$count;
219
+        $average = $total / $count;
220 220
 
221 221
         // are we happy?
222 222
         assertsDouble($average)->isLessThanOrEqualTo($expectedAverage);
Please login to merge, or discard this patch.
src/php/Prose/FromBrowser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
             $log = usingLog()->startAction("retrieve the value of the $elementDesc '$elementName'");
273 273
 
274 274
             // is this a select box?
275
-            switch($element->name()) {
275
+            switch ($element->name()) {
276 276
                 case 'select':
277 277
                     // get the option that is selected
278 278
                     try {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -350,8 +350,7 @@  discard block
 block discarded – undo
350 350
             // all done
351 351
             return $credentials;
352 352
         }
353
-        catch (Exception $e)
354
-        {
353
+        catch (Exception $e) {
355 354
             return null;
356 355
         }
357 356
     }
@@ -370,8 +369,7 @@  discard block
 block discarded – undo
370 369
             // get the details
371 370
             return $adapter->hasHttpBasicAuthForHost($hostname);
372 371
         }
373
-        catch (Exception $e)
374
-        {
372
+        catch (Exception $e) {
375 373
             return false;
376 374
         }
377 375
     }
Please login to merge, or discard this patch.
src/php/Prose/FromCurl.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function get($url, $params = array(), $headers = array())
71 71
     {
72
-        if (count($headers)){
72
+        if (count($headers)) {
73 73
             // "FromCurl does not support headers yet"
74 74
             throw new E5xx_NotImplemented(__METHOD__);
75 75
         }
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
         // close cURL resource, and free up system resources
98 98
         curl_close($ch);
99 99
 
100
-        if ($error){
101
-            throw new E5xx_ActionFailed(__METHOD__.': '.$error);
100
+        if ($error) {
101
+            throw new E5xx_ActionFailed(__METHOD__ . ': ' . $error);
102 102
         }
103 103
 
104 104
         // Try and decode it
105 105
         $decoded = json_decode($response);
106 106
 
107
-        if ($decoded){
107
+        if ($decoded) {
108 108
             $response = $decoded;
109 109
         }
110 110
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function get($url, $params = array(), $headers = array())
71 71
     {
72
-        if (count($headers)){
72
+        if (count($headers)) {
73 73
             // "FromCurl does not support headers yet"
74 74
             throw new E5xx_NotImplemented(__METHOD__);
75 75
         }
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
         // close cURL resource, and free up system resources
98 98
         curl_close($ch);
99 99
 
100
-        if ($error){
100
+        if ($error) {
101 101
             throw new E5xx_ActionFailed(__METHOD__.': '.$error);
102 102
         }
103 103
 
104 104
         // Try and decode it
105 105
         $decoded = json_decode($response);
106 106
 
107
-        if ($decoded){
107
+        if ($decoded) {
108 108
             $response = $decoded;
109 109
         }
110 110
 
Please login to merge, or discard this patch.
src/php/Prose/FromFacebook.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return string Access token
68 68
      */
69
-    public function getAccessToken($options = array()){
69
+    public function getAccessToken($options = array()) {
70 70
 
71 71
         // Grab the details of our user
72 72
         $user = $this->args[0];
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $config = $this->st->getRuntimeConfig();
79 79
 
80 80
         // Check the one in the runtime config if we've not disabled the cache
81
-        if (isset($config->facebookAccessToken, $config->facebookAccessToken->expires) && $config->facebookAccessToken->expires > time() && !$disableCache){
81
+        if (isset($config->facebookAccessToken, $config->facebookAccessToken->expires) && $config->facebookAccessToken->expires > time() && !$disableCache) {
82 82
             return $config->facebookAccessToken->access_token;
83 83
         }
84 84
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,8 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return string Access token
68 68
      */
69
-    public function getAccessToken($options = array()){
69
+    public function getAccessToken($options = array())
70
+    {
70 71
 
71 72
         // Grab the details of our user
72 73
         $user = $this->args[0];
@@ -78,7 +79,7 @@  discard block
 block discarded – undo
78 79
         $config = $this->st->getRuntimeConfig();
79 80
 
80 81
         // Check the one in the runtime config if we've not disabled the cache
81
-        if (isset($config->facebookAccessToken, $config->facebookAccessToken->expires) && $config->facebookAccessToken->expires > time() && !$disableCache){
82
+        if (isset($config->facebookAccessToken, $config->facebookAccessToken->expires) && $config->facebookAccessToken->expires > time() && !$disableCache) {
82 83
             return $config->facebookAccessToken->access_token;
83 84
         }
84 85
 
Please login to merge, or discard this patch.
src/php/Prose/FromForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         }
72 72
 
73 73
         // yes, it really is a form
74
-        $this->formId      = $formId;
74
+        $this->formId = $formId;
75 75
         $this->setTopElement($formElement);
76 76
     }
77 77
 }
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
src/php/Prose/FromHost.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
         $data = $hostDetails->appSettings->getData($path);
502 502
 
503 503
         // all done
504
-        $log->endAction([ "setting is", $data ]);
504
+        $log->endAction(["setting is", $data]);
505 505
         return $data;
506 506
     }
507 507
 
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
         $data = $hostDetails->storySettings->getData($path);
574 574
 
575 575
         // all done
576
-        $log->endAction([ "setting is", $data ]);
576
+        $log->endAction(["setting is", $data]);
577 577
         return $data;
578 578
     }
579 579
 
Please login to merge, or discard this patch.
src/php/Prose/FromRuntimeTableForTargetEnvironment.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $tables = $this->getAllTables();
73 73
 
74 74
         // make sure we have a table
75
-        if (!isset($tables->$tableName)){
75
+        if (!isset($tables->$tableName)) {
76 76
             $tables->$tableName = new BaseObject();
77 77
         }
78 78
         if (!isset($tables->$tableName->$targetEnv)) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $tables = $this->getAllTables();
98 98
 
99 99
         // make sure we have a table
100
-        if (!isset($tables->$tableName)){
100
+        if (!isset($tables->$tableName)) {
101 101
             $tables->$tableName = new BaseObject();
102 102
         }
103 103
         if (!isset($tables->$tableName->$targetEnv)) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $tables = $this->getAllTables();
73 73
 
74 74
         // make sure we have a table
75
-        if (!isset($tables->$tableName)){
75
+        if (!isset($tables->$tableName)) {
76 76
             $tables->$tableName = new BaseObject();
77 77
         }
78 78
         if (!isset($tables->$tableName->$targetEnv)) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $tables = $this->getAllTables();
98 98
 
99 99
         // make sure we have a table
100
-        if (!isset($tables->$tableName)){
100
+        if (!isset($tables->$tableName)) {
101 101
             $tables->$tableName = new BaseObject();
102 102
         }
103 103
         if (!isset($tables->$tableName->$targetEnv)) {
Please login to merge, or discard this patch.
src/php/Prose/IframeContext.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@
 block discarded – undo
57 57
  */
58 58
 class IframeContext extends PageContext
59 59
 {
60
-    public function __construct($iframeId) {
60
+    public function __construct($iframeId)
61
+    {
61 62
         $this->pageContextAction = function(Story_Context $context) use($iframeId) {
62 63
             $browser = $context->browserSession;
63 64
 
Please login to merge, or discard this patch.
src/php/Prose/TimedAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
             pcntl_alarm($seconds);
97 97
         });
98 98
 
99
-        declare(ticks=1);
99
+        declare(ticks = 1);
100 100
         $callback = $this->action;
101 101
         $returnVal = $callback($this);
102 102
 
Please login to merge, or discard this patch.