@@ -79,7 +79,7 @@ |
||
| 79 | 79 | /** |
| 80 | 80 | * Pocesses the internal timer state to return the time elapsed. |
| 81 | 81 | * @param $value |
| 82 | - * @param $format |
|
| 82 | + * @param string $format |
|
| 83 | 83 | * @return mixed |
| 84 | 84 | */ |
| 85 | 85 | protected static function processTimerValue($value, $format) { |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | self::$timers[$key][0] = true; |
| 50 | 50 | self::$timers[$key][1] = static::getCurrentTime(); |
| 51 | 51 | } |
| 52 | - } |
|
| 53 | - else { |
|
| 52 | + } else { |
|
| 54 | 53 | self::$timers[$key] = [ |
| 55 | 54 | true, |
| 56 | 55 | static::getCurrentTime(), |
@@ -143,8 +142,7 @@ discard block |
||
| 143 | 142 | $ct = static::getCurrentTime(); |
| 144 | 143 | self::$timers[$key][0] = false; |
| 145 | 144 | self::$timers[$key][2] += $ct - self::$timers[$key][1]; |
| 146 | - } |
|
| 147 | - else { |
|
| 145 | + } else { |
|
| 148 | 146 | throw new \LogicException('Stopping timer when the given key timer was not initialized.'); |
| 149 | 147 | } |
| 150 | 148 | } |