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
Branch master (ce8a6b)
by Ayesh
01:56
created
src/Timer.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
     static::$timers = [];
41 41
   }
42 42
 
43
+  /**
44
+   * @param string $format
45
+   */
43 46
   final static protected function processTimerValue($value, $format) {
44 47
     if ($value[0]) {
45 48
       return static::formatTime((static::getCurrentTime() - $value[1]) + $value[2], $format);
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,14 +16,12 @@  discard block
 block discarded – undo
16 16
   static public function start($key = 'default') {
17 17
     if (!is_scalar($key)) {
18 18
       throw new \InvalidArgumentException('Key should be a scalar value.');
19
-    }
20
-    elseif (isset(static::$timers[$key])) {
19
+    } elseif (isset(static::$timers[$key])) {
21 20
       if (empty(static::$timers[$key][0])) {
22 21
         static::$timers[$key][0] = true;
23 22
         static::$timers[$key][1] = static::getCurrentTime();
24 23
       }
25
-    }
26
-    else {
24
+    } else {
27 25
       static::$timers[$key] = [
28 26
         true,
29 27
         static::getCurrentTime(),
@@ -43,8 +41,7 @@  discard block
 block discarded – undo
43 41
   final static protected function processTimerValue($value, $format) {
44 42
     if ($value[0]) {
45 43
       return static::formatTime((static::getCurrentTime() - $value[1]) + $value[2], $format);
46
-    }
47
-    else {
44
+    } else {
48 45
       return static::formatTime($value[2], $format);
49 46
     }
50 47
   }
@@ -78,8 +75,7 @@  discard block
 block discarded – undo
78 75
       $ct = static::getCurrentTime();
79 76
       static::$timers[$key][0] = false;
80 77
       static::$timers[$key][2] = static::$timers[$key][2] + ($ct - static::$timers[$key][1]);
81
-    }
82
-    else {
78
+    } else {
83 79
       throw new \LogicException('Stopping timer when the given key timer was not initialized.');
84 80
     }
85 81
   }
Please login to merge, or discard this patch.