@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return $path; |
76 | 76 | } |
77 | 77 | $callerDir = dirname($this->getCallingFile($backtrace)); |
78 | - $pathFromCallerContext = $callerDir . '/' . $path; |
|
78 | + $pathFromCallerContext = $callerDir.'/'.$path; |
|
79 | 79 | if (file_exists($pathFromCallerContext)) { |
80 | 80 | return realpath($pathFromCallerContext); |
81 | 81 | } else { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | public function stream_open($path, $mode, $options) { |
87 | 87 | $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
88 | - return $this->runUnwrapped(function (Interceptor $interceptor) use ($path, $mode, $options, $backtrace) { |
|
88 | + return $this->runUnwrapped(function(Interceptor $interceptor) use ($path, $mode, $options, $backtrace) { |
|
89 | 89 | $path = $this->fixPath($path, $backtrace); |
90 | 90 | |
91 | 91 | $including = (bool)($options & self::STREAM_OPEN_FOR_INCLUDE); |
@@ -131,9 +131,9 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | public function url_stat($path, $flags) { |
134 | - return $this->runUnwrapped(function () use ($path, $flags) { |
|
134 | + return $this->runUnwrapped(function() use ($path, $flags) { |
|
135 | 135 | if ($flags & STREAM_URL_STAT_QUIET) { |
136 | - set_error_handler(function () { |
|
136 | + set_error_handler(function() { |
|
137 | 137 | }); |
138 | 138 | } |
139 | 139 | $result = stat($path); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | public function dir_opendir($path) { |
153 | - return $this->runUnwrapped(function () use ($path) { |
|
153 | + return $this->runUnwrapped(function() use ($path) { |
|
154 | 154 | if (isset($this->context)) { |
155 | 155 | $this->resource = opendir($path, $this->context); |
156 | 156 | } else { |
@@ -170,19 +170,19 @@ discard block |
||
170 | 170 | } |
171 | 171 | |
172 | 172 | public function mkdir($path, $mode, $options) { |
173 | - return $this->runUnwrapped(function () use ($path, $mode, $options) { |
|
173 | + return $this->runUnwrapped(function() use ($path, $mode, $options) { |
|
174 | 174 | return mkdir($path, $mode, $options, $this->context); |
175 | 175 | }); |
176 | 176 | } |
177 | 177 | |
178 | 178 | public function rename($pathFrom, $pathTo) { |
179 | - return $this->runUnwrapped(function () use ($pathFrom, $pathTo) { |
|
179 | + return $this->runUnwrapped(function() use ($pathFrom, $pathTo) { |
|
180 | 180 | return rename($pathFrom, $pathTo, $this->context); |
181 | 181 | }); |
182 | 182 | } |
183 | 183 | |
184 | 184 | public function rmdir($path) { |
185 | - return $this->runUnwrapped(function () use ($path) { |
|
185 | + return $this->runUnwrapped(function() use ($path) { |
|
186 | 186 | return rmdir($path, $this->context); |
187 | 187 | }); |
188 | 188 | } |
@@ -215,13 +215,13 @@ discard block |
||
215 | 215 | } |
216 | 216 | |
217 | 217 | public function unlink($path) { |
218 | - return $this->runUnwrapped(function () use ($path) { |
|
218 | + return $this->runUnwrapped(function() use ($path) { |
|
219 | 219 | return unlink($path, $this->context); |
220 | 220 | }); |
221 | 221 | } |
222 | 222 | |
223 | 223 | public function stream_metadata($path, $option, $value) { |
224 | - return $this->runUnwrapped(function () use ($path, $option, $value) { |
|
224 | + return $this->runUnwrapped(function() use ($path, $option, $value) { |
|
225 | 225 | switch ($option) { |
226 | 226 | case STREAM_META_TOUCH: |
227 | 227 | if (empty($value)) { |
@@ -105,6 +105,6 @@ |
||
105 | 105 | * @return bool |
106 | 106 | */ |
107 | 107 | private function inDirectory($directory, $path) { |
108 | - return ($directory === '') || (substr($path, 0, strlen($directory) + 1) === $directory . '/'); |
|
108 | + return ($directory === '') || (substr($path, 0, strlen($directory) + 1) === $directory.'/'); |
|
109 | 109 | } |
110 | 110 | } |