Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public static function printTimeDuration($startTime) |
||
28 | { |
||
29 | $currentTime = microtime(true); |
||
30 | |||
31 | if (gettype($startTime) === 'string') { |
||
32 | $currentTime = microtime(); |
||
33 | } |
||
34 | |||
35 | $completedIn = (float) $currentTime - (float) $startTime; |
||
36 | $completedIn = number_format((float) $completedIn, 4, '.', ''); |
||
37 | |||
38 | self::message('It was done in '.$completedIn.' ms.'); |
||
39 | } |
||
90 |
This check marks private properties in classes that are never used. Those properties can be removed.