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 ( 163056...d67fc1 )
by Rich
16s
created
src/Math.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -270,9 +270,9 @@  discard block
 block discarded – undo
270 270
             return $bin;
271 271
 
272 272
         } catch (\Exception $e) {
273
-            throw new MathException("Caught the following exception in Math::D2B(): " . $e->getMessage(), 0, $e);
273
+            throw new MathException("Caught the following exception in Math::D2B(): ".$e->getMessage(), 0, $e);
274 274
         } catch (\Error $e) {
275
-            throw new MathException("Fatal error in Math::D2B(): " . $e->getMessage(), 0, $e);
275
+            throw new MathException("Fatal error in Math::D2B(): ".$e->getMessage(), 0, $e);
276 276
         }
277 277
     }
278 278
 
@@ -323,15 +323,15 @@  discard block
 block discarded – undo
323 323
             $return  = strrev($this->encodeValue($hex, '58'));
324 324
 
325 325
             for ($i = 0; $i < strlen($orighex) && substr($orighex, $i, 2) == '00'; $i += 2) {
326
-                $return = '1' . $return;
326
+                $return = '1'.$return;
327 327
             }
328 328
 
329 329
             return $return;
330 330
 
331 331
         } catch (\Exception $e) {
332
-            throw new MathException("Caught the following exception in Math::encodeBase58(): " . $e->getMessage(), 0, $e);
332
+            throw new MathException("Caught the following exception in Math::encodeBase58(): ".$e->getMessage(), 0, $e);
333 333
         } catch (\Error $e) {
334
-            throw new MathException("Fatal error in Math::encodeBase58(): " . $e->getMessage(), 0, $e);
334
+            throw new MathException("Fatal error in Math::encodeBase58(): ".$e->getMessage(), 0, $e);
335 335
         }
336 336
     }
337 337
 
@@ -360,15 +360,15 @@  discard block
 block discarded – undo
360 360
             $return = $this->encodeHex($return);
361 361
 
362 362
             for ($i = 0; $i < strlen($origbase58) && $origbase58[$i] == '1'; $i++) {
363
-                $return = '00' . $return;
363
+                $return = '00'.$return;
364 364
             }
365 365
 
366
-            return (strlen($return) % 2 != 0) ? '0' . $return : $return;
366
+            return (strlen($return) % 2 != 0) ? '0'.$return : $return;
367 367
 
368 368
         } catch (\Exception $e) {
369
-            throw new MathException("Caught the following exception in Math::decodeBase58(): " . $e->getMessage(), 0, $e);
369
+            throw new MathException("Caught the following exception in Math::decodeBase58(): ".$e->getMessage(), 0, $e);
370 370
         } catch (\Error $e) {
371
-            throw new MathException("Fatal error in Math::decodeBase58(): " . $e->getMessage(), 0, $e);
371
+            throw new MathException("Fatal error in Math::decodeBase58(): ".$e->getMessage(), 0, $e);
372 372
         }
373 373
     }
374 374
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         foreach ($params as $key => $value) {
408 408
             if ($this->numberCheck($value) === false) {
409 409
                 $caller = debug_backtrace();
410
-                throw new MathException('Empty or invalid parameters passed to ' . $caller[count($caller) - 1]['function'] . ' function.');
410
+                throw new MathException('Empty or invalid parameters passed to '.$caller[count($caller) - 1]['function'].' function.');
411 411
             }
412 412
         }
413 413
     }
@@ -434,15 +434,15 @@  discard block
 block discarded – undo
434 434
                 $qq  = $this->math->div($val, $base);
435 435
                 $rem = $this->math->mod($val, $base);
436 436
                 $val = $qq;
437
-                $new = $new . $digits[$rem];
437
+                $new = $new.$digits[$rem];
438 438
             }
439 439
 
440 440
             return $new;
441 441
 
442 442
         } catch (\Exception $e) {
443
-            throw new MathException("Caught the following exception in Math::encodeValue(): " . $e->getMessage(), 0, $e);
443
+            throw new MathException("Caught the following exception in Math::encodeValue(): ".$e->getMessage(), 0, $e);
444 444
         } catch (\Error $e) {
445
-            throw new MathException("Fatal error in Math::encodeValue(): " . $e->getMessage(), 0, $e);
445
+            throw new MathException("Fatal error in Math::encodeValue(): ".$e->getMessage(), 0, $e);
446 446
         }
447 447
     }
448 448
 
Please login to merge, or discard this patch.