@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | { |
58 | 58 | $this->prefix = $prefix; |
59 | 59 | if (empty($path)) { |
60 | - $this->path = sys_get_temp_dir() . '/session/'; |
|
60 | + $this->path = sys_get_temp_dir().'/session/'; |
|
61 | 61 | } else { |
62 | - $this->path = rtrim($path, '/') . '/'; |
|
62 | + $this->path = rtrim($path, '/').'/'; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | if (!is_dir($this->path)) { |
@@ -160,6 +160,6 @@ discard block |
||
160 | 160 | */ |
161 | 161 | protected function getSessionFile(/*# string */ $session_id)/*# : string */ |
162 | 162 | { |
163 | - return $this->path . $this->prefix . $session_id; |
|
163 | + return $this->path.$this->prefix.$session_id; |
|
164 | 164 | } |
165 | 165 | } |
@@ -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 { |
@@ -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 | } |