@@ -83,7 +83,7 @@ |
||
83 | 83 | * @param string $format The default format is milliseconds. See the class constants for additional |
84 | 84 | * formats. |
85 | 85 | * |
86 | - * @return mixed The formatted time, formatted by the formatter string passed for $format. |
|
86 | + * @return string The formatted time, formatted by the formatter string passed for $format. |
|
87 | 87 | * @throws \LogicException |
88 | 88 | * If the timer was not started, a \LogicException will be thrown. Use @see \Ayesh\PHP_Timer\Timer::start() |
89 | 89 | * to start a timer. |
@@ -127,11 +127,11 @@ |
||
127 | 127 | foreach (self::TIMES as $unit => $value) { |
128 | 128 | if ($ms >= $value) { |
129 | 129 | $time = floor($ms / $value * 100.0) / 100.0; |
130 | - return $time . ' ' . ($time == 1 ? $unit : $unit . 's'); |
|
130 | + return $time.' '.($time == 1 ? $unit : $unit.'s'); |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | |
134 | - return $ms . ' ms'; |
|
134 | + return $ms.' ms'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |