@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function __construct($path) |
32 | 32 | { |
33 | - $this->path = $this->fixDirectorySeparator($path); |
|
33 | + $this->path = $this->fixDirectorySeparator($path); |
|
34 | 34 | if ($this->exists()) { |
35 | 35 | $this->path = realpath($this->path); |
36 | 36 | } |
@@ -199,9 +199,9 @@ discard block |
||
199 | 199 | */ |
200 | 200 | private function fixDirectorySeparator($path) |
201 | 201 | { |
202 | - $path = str_replace("\\", DIRECTORY_SEPARATOR , $path); |
|
203 | - $path = str_replace("/", DIRECTORY_SEPARATOR, $path); |
|
202 | + $path = str_replace("\\", DIRECTORY_SEPARATOR , $path); |
|
203 | + $path = str_replace("/", DIRECTORY_SEPARATOR, $path); |
|
204 | 204 | |
205 | - return $path; |
|
205 | + return $path; |
|
206 | 206 | } |
207 | 207 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function isEmpty($filter = null) |
50 | 50 | { |
51 | - if (! $this->exists()) { |
|
51 | + if (!$this->exists()) { |
|
52 | 52 | throw new DirectoryException("Directory {dir} does not exist", array( |
53 | 53 | 'dir' => $this->path |
54 | 54 | )); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $iter = new \DirectoryIterator($this->path); |
58 | 58 | while ($iter->valid()) { |
59 | - if (! $iter->isDot() && ($filter === null || ! preg_match("/$filter/", $iter->getFilename()))) { |
|
59 | + if (!$iter->isDot() && ($filter === null || !preg_match("/$filter/", $iter->getFilename()))) { |
|
60 | 60 | return false; |
61 | 61 | } |
62 | 62 | $iter->next(); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function remove($recursive = false) |
77 | 77 | { |
78 | - if (! $this->exists()) { |
|
78 | + if (!$this->exists()) { |
|
79 | 79 | return; |
80 | 80 | } |
81 | 81 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | return; |
89 | 89 | } |
90 | 90 | |
91 | - if (! $recursive) { |
|
91 | + if (!$recursive) { |
|
92 | 92 | throw new DirectoryException("Directory {dir} is not empty", array( |
93 | 93 | 'dir' => $this->path |
94 | 94 | )); |
@@ -145,11 +145,11 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function exists() |
147 | 147 | { |
148 | - if (! file_exists($this->path)) { |
|
148 | + if (!file_exists($this->path)) { |
|
149 | 149 | return false; |
150 | 150 | } |
151 | 151 | |
152 | - if (! is_dir($this->path)) { |
|
152 | + if (!is_dir($this->path)) { |
|
153 | 153 | throw new DirectoryException("Entry {path} exists, but it is not a directory!", array( |
154 | 154 | 'path' => $this->path |
155 | 155 | )); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function fileExists($fileName) |
182 | 182 | { |
183 | - if (! $this->exists()) { |
|
183 | + if (!$this->exists()) { |
|
184 | 184 | return false; |
185 | 185 | } |
186 | 186 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | */ |
200 | 200 | private function fixDirectorySeparator($path) |
201 | 201 | { |
202 | - $path = str_replace("\\", DIRECTORY_SEPARATOR , $path); |
|
202 | + $path = str_replace("\\", DIRECTORY_SEPARATOR, $path); |
|
203 | 203 | $path = str_replace("/", DIRECTORY_SEPARATOR, $path); |
204 | 204 | |
205 | 205 | return $path; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | trait DumpLoggerTrait |
16 | 16 | { |
17 | - abstract public function debug($message, array $context = array()); |
|
17 | + abstract public function debug($message, array $context = array()); |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * {@inheritDoc} |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | trait ExceptionLoggerTrait |
18 | 18 | { |
19 | - abstract protected function logImpl($level, $message, array $context = array()); |
|
19 | + abstract protected function logImpl($level, $message, array $context = array()); |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * {@inheritDoc} |
@@ -472,6 +472,6 @@ |
||
472 | 472 | */ |
473 | 473 | public function isOpen() |
474 | 474 | { |
475 | - return true; |
|
475 | + return true; |
|
476 | 476 | } |
477 | 477 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | */ |
224 | 224 | public function isLocked() |
225 | 225 | { |
226 | - return $this->locked; |
|
226 | + return $this->locked; |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
@@ -232,6 +232,6 @@ discard block |
||
232 | 232 | */ |
233 | 233 | public function isOpen() |
234 | 234 | { |
235 | - return is_resource($this->handle); |
|
235 | + return is_resource($this->handle); |
|
236 | 236 | } |
237 | 237 | } |
@@ -207,6 +207,6 @@ |
||
207 | 207 | */ |
208 | 208 | public function isOpen() |
209 | 209 | { |
210 | - return true; |
|
210 | + return true; |
|
211 | 211 | } |
212 | 212 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | public function isLocked() |
172 | 172 | { |
173 | - return $this->locked; |
|
173 | + return $this->locked; |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | /** |
@@ -189,6 +189,6 @@ discard block |
||
189 | 189 | */ |
190 | 190 | public function isOpen() |
191 | 191 | { |
192 | - return is_resource($this->handle); |
|
192 | + return is_resource($this->handle); |
|
193 | 193 | } |
194 | 194 | } |
@@ -210,6 +210,6 @@ |
||
210 | 210 | */ |
211 | 211 | public function isOpen() |
212 | 212 | { |
213 | - return is_resource($this->handle); |
|
213 | + return is_resource($this->handle); |
|
214 | 214 | } |
215 | 215 | } |