@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $contexts[$algorithm] = hash_init($algorithm); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | -while(!feof($fileHandle)) |
|
| 16 | +while (!feof($fileHandle)) |
|
| 17 | 17 | { |
| 18 | 18 | $buffer = fread($fileHandle, 65536); |
| 19 | 19 | |
@@ -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 | } |