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 ( bcd62e...b3fd6e )
by Christian
41:18
created
src/classes/Util.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public static function filterPagesByEnvironmentType($sspages, $env) {
78 78
         $arr = array();
79
-        if(preg_match("/^(dev|test|live)$/",$env) === 1){
79
+        if (preg_match("/^(dev|test|live)$/", $env) === 1) {
80 80
             foreach ($sspages as $sspage) {
81 81
                 if (!$sspage instanceof SilverstripePage) {
82 82
                     continue;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             if (!$sspage instanceof SilverstripePage) {
102 102
                 continue;
103 103
             }
104
-            if (preg_match("/$filterRegex/",$sspage->getVersion())) {
104
+            if (preg_match("/$filterRegex/", $sspage->getVersion())) {
105 105
                 array_push($arr, $sspage);
106 106
             }
107 107
         }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $arr = array();
139 139
         $single = explode(".", $version);
140 140
 
141
-        for ($i = 0;$i<3;$i++) {
141
+        for ($i = 0; $i < 3; $i++) {
142 142
             if (!isset($single[$i])) {
143 143
                 $x = 0;
144 144
             } else {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $v1 = Util::VersionStringsToArray($version1);
156 156
         $v2 = Util::VersionStringsToArray($version2);
157
-        for ($i = 0; $i<3;$i++) {
157
+        for ($i = 0; $i < 3; $i++) {
158 158
             if ($v1[$i] < $v2[$i]) {
159 159
                 return false;
160 160
             }
@@ -176,10 +176,10 @@  discard block
 block discarded – undo
176 176
         }
177 177
     }
178 178
 
179
-    public static function reportError($string,$die = true) {
180
-        if($die) {
179
+    public static function reportError($string, $die = true) {
180
+        if ($die) {
181 181
             exit($string);
182
-        }else{
182
+        } else {
183 183
             echo($string);
184 184
         }
185 185
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
     public static function reportError($string,$die = true) {
180 180
         if($die) {
181 181
             exit($string);
182
-        }else{
182
+        } else{
183 183
             echo($string);
184 184
         }
185 185
     }
Please login to merge, or discard this patch.