@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function generate() |
117 | 117 | { |
118 | - $t = (int) floor($this->timer->getUnixTimestamp() - $this->epoch); |
|
118 | + $t = (int) floor($this->timer->getUnixTimestamp()-$this->epoch); |
|
119 | 119 | if ($t !== $this->lastTime) { |
120 | 120 | $this->generateWithDifferentTime($t); |
121 | 121 | } else { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | if ($t < $this->lastTime) { |
153 | 153 | throw new UnexpectedValueException( |
154 | 154 | 'Time moved backwards. We cannot generate IDs for ' |
155 | - .($this->lastTime - $t).' milliseconds' |
|
155 | + .($this->lastTime-$t).' milliseconds' |
|
156 | 156 | ); |
157 | 157 | } elseif ($t < 0) { |
158 | 158 | throw new UnexpectedValueException( |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | private function hexdec($hex) |
222 | 222 | { |
223 | 223 | $dec = 0; |
224 | - for ($i = strlen($hex) - 1, $e = 1; $i >= 0; $i--, $e = bcmul($e, 16)) { |
|
224 | + for ($i = strlen($hex)-1, $e = 1; $i >= 0; $i--, $e = bcmul($e, 16)) { |
|
225 | 225 | $factor = self::$hexdec[$hex[$i]]; |
226 | 226 | $dec = bcadd($dec, bcmul($factor, $e)); |
227 | 227 | } |