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 — develop ( ed81f3...cf83d8 )
by Gabriel
05:44
created
src/Helpers/Hash.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,12 @@
 block discarded – undo
11 11
         $gp = $golden_primes[$base];
12 12
         $maxlen = count($gp);
13 13
         $len = $len > ($maxlen - 1) ? ($maxlen - 1) : $len;
14
-        while ($len < $maxlen && pow($base, $len) < $num)
15
-            $len++;
16
-        if ($len >= $maxlen)
17
-            throw new Exception($num." out of range (max ".pow($base, $maxlen - 1).")");
14
+        while ($len < $maxlen && pow($base, $len) < $num) {
15
+                    $len++;
16
+        }
17
+        if ($len >= $maxlen) {
18
+                    throw new Exception($num." out of range (max ".pow($base, $maxlen - 1).")");
19
+        }
18 20
         $ceil = pow($base, $len);
19 21
         $prime = $gp[$len];
20 22
         $dechash = ($num * $prime) % $ceil;
Please login to merge, or discard this patch.
src/Hash.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,12 @@
 block discarded – undo
12 12
 		$gp = self::$golden_primes[$base];
13 13
 		$maxlen = count($gp);
14 14
 		$len = $len > ($maxlen - 1) ? ($maxlen - 1) : $len;
15
-		while ($len < $maxlen && pow($base, $len) < $num)
16
-			$len++;
17
-		if ($len >= $maxlen)
18
-			throw new Exception($num . " out of range (max " . pow($base, $maxlen - 1) . ")");
15
+		while ($len < $maxlen && pow($base, $len) < $num) {
16
+					$len++;
17
+		}
18
+		if ($len >= $maxlen) {
19
+					throw new Exception($num . " out of range (max " . pow($base, $maxlen - 1) . ")");
20
+		}
19 21
 		$ceil = pow($base, $len);
20 22
 		$prime = $gp[$len];
21 23
 		$dechash = ($num * $prime) % $ceil;
Please login to merge, or discard this patch.
src/Helpers/Arrays.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -237,8 +237,9 @@  discard block
 block discarded – undo
237 237
     public function toXML($data, $rootNodeName = 'ResultSet', &$xml = null)
238 238
     {
239 239
         // turn off compatibility mode as simple xml throws a wobbly if you don't.
240
-        if (ini_get('zend.ze1_compatibility_mode') == 1)
241
-            ini_set('zend.ze1_compatibility_mode', 0);
240
+        if (ini_get('zend.ze1_compatibility_mode') == 1) {
241
+                    ini_set('zend.ze1_compatibility_mode', 0);
242
+        }
242 243
 
243 244
         if (is_null($xml)) {
244 245
             $xml = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><$rootNodeName />");
@@ -260,8 +261,9 @@  discard block
 block discarded – undo
260 261
                 $node = $this->isAssoc($value) || $numeric ? $xml->addChild($key) : $xml;
261 262
 
262 263
                 // recursive call
263
-                if ($numeric)
264
-                    $key = 'anon';
264
+                if ($numeric) {
265
+                                    $key = 'anon';
266
+                }
265 267
                 $this->toXML($value, $key, $node);
266 268
             } else {
267 269
                 // add single node.
Please login to merge, or discard this patch.