@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Ayesh\PHP_Timer; |
| 5 | 5 | |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | self::$timers[$key][0] = true; |
| 50 | 50 | self::$timers[$key][1] = self::getCurrentTime(); |
| 51 | 51 | } |
| 52 | - } |
|
| 53 | - else { |
|
| 52 | + } else { |
|
| 54 | 53 | self::$timers[$key] = [ |
| 55 | 54 | true, |
| 56 | 55 | self::getCurrentTime(), |
@@ -143,8 +142,7 @@ discard block |
||
| 143 | 142 | $ct = self::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 | } |