@@ -232,18 +232,15 @@ |
||
| 232 | 232 | { |
| 233 | 233 | $object->type = static::TYPE_LINK; |
| 234 | 234 | $object->linkTarget = str_replace("{$basePath}/", '', readlink($absolutePath)); |
| 235 | - } |
|
| 236 | - elseif (is_file($absolutePath)) |
|
| 235 | + } elseif (is_file($absolutePath)) |
|
| 237 | 236 | { |
| 238 | 237 | $object->type = static::TYPE_FILE; |
| 239 | 238 | $object->size = (int)$stat['size']; |
| 240 | 239 | $object->hashes = new HashContainer(); |
| 241 | - } |
|
| 242 | - elseif (is_dir($absolutePath)) |
|
| 240 | + } elseif (is_dir($absolutePath)) |
|
| 243 | 241 | { |
| 244 | 242 | $object->type = static::TYPE_DIR; |
| 245 | - } |
|
| 246 | - else |
|
| 243 | + } else |
|
| 247 | 244 | { |
| 248 | 245 | throw new \LogicException(); |
| 249 | 246 | } |