@@ -168,17 +168,14 @@ |
||
168 | 168 | { |
169 | 169 | $object->type = static::TYPE_LINK; |
170 | 170 | $object->linkTarget = str_replace($basePath, '', readlink($absolutePath)); |
171 | - } |
|
172 | - elseif (is_file($absolutePath)) |
|
171 | + } elseif (is_file($absolutePath)) |
|
173 | 172 | { |
174 | 173 | $object->type = static::TYPE_FILE; |
175 | 174 | $object->size = (int)$stat['size']; |
176 | - } |
|
177 | - elseif (is_dir($absolutePath)) |
|
175 | + } elseif (is_dir($absolutePath)) |
|
178 | 176 | { |
179 | 177 | $object->type = static::TYPE_DIR; |
180 | - } |
|
181 | - else |
|
178 | + } else |
|
182 | 179 | { |
183 | 180 | throw new \LogicException(); |
184 | 181 | } |