@@ -38,8 +38,7 @@ |
||
| 38 | 38 | public static function start(string $key = 'default'): void { |
| 39 | 39 | if (isset(self::$timers[$key])) { |
| 40 | 40 | self::$timers[$key]->start(); |
| 41 | - } |
|
| 42 | - else { |
|
| 41 | + } else { |
|
| 43 | 42 | self::$timers[$key] = new Stopwatch(); |
| 44 | 43 | } |
| 45 | 44 | } |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * @param string $key The key that the timer was started with. Default value is |
| 117 | 117 | * "default" throughout the class. |
| 118 | 118 | * @param string $format |
| 119 | - * @return mixed The formatted time. |
|
| 119 | + * @return string The formatted time. |
|
| 120 | 120 | * @throws \LogicException |
| 121 | 121 | */ |
| 122 | 122 | public static function read(string $key = 'default', $format = self::FORMAT_MILLISECONDS) { |