@@ -132,7 +132,7 @@ |
||
| 132 | 132 | */ |
| 133 | 133 | protected function getMask(/*# int */ $length = 32)/*# : int */ |
| 134 | 134 | { |
| 135 | - $bin = substr(str_repeat('1', $length) . str_repeat('0', 32), 0, 32); |
|
| 135 | + $bin = substr(str_repeat('1', $length).str_repeat('0', 32), 0, 32); |
|
| 136 | 136 | return bindec($bin); |
| 137 | 137 | } |
| 138 | 138 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public function setGenerator(GeneratorInterface $generator = null) |
| 41 | 41 | { |
| 42 | 42 | if (null === $generator) { |
| 43 | - $this->generator = function () { |
|
| 43 | + $this->generator = function() { |
|
| 44 | 44 | return md5(microtime(true) + rand(1, 10000)); |
| 45 | 45 | }; |
| 46 | 46 | } else { |