Skip to content

Commit 985bb44

Browse files
committed
Code style fixes
1 parent 29e8c1e commit 985bb44

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Timer.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
declare(strict_types=1);
2+
declare(strict_types = 1);
33

44
namespace Ayesh\PHP_Timer;
55

@@ -49,8 +49,7 @@ public static function start(string $key = 'default') {
4949
self::$timers[$key][0] = true;
5050
self::$timers[$key][1] = self::getCurrentTime();
5151
}
52-
}
53-
else {
52+
} else {
5453
self::$timers[$key] = [
5554
true,
5655
self::getCurrentTime(),
@@ -143,8 +142,7 @@ public static function stop($key = 'default') {
143142
$ct = self::getCurrentTime();
144143
self::$timers[$key][0] = false;
145144
self::$timers[$key][2] += $ct - self::$timers[$key][1];
146-
}
147-
else {
145+
} else {
148146
throw new \LogicException('Stopping timer when the given key timer was not initialized.');
149147
}
150148
}

0 commit comments

Comments
 (0)