Code Duplication    Length = 10-11 lines in 2 locations

src/Filesystem.php 2 locations

@@ 434-444 (lines=11) @@
431
    /**
432
     * @inheritdoc
433
     */
434
    public function getVisibility($path)
435
    {
436
        $path = Util::normalizePath($path);
437
        $this->assertPresent($path);
438
439
        if (($object = $this->getAdapter()->getVisibility($path)) === false) {
440
            return false;
441
        }
442
443
        return $object['visibility'];
444
    }
445
446
    /**
447
     * @inheritdoc
@@ 449-458 (lines=10) @@
446
    /**
447
     * @inheritdoc
448
     */
449
    public function getSize($path)
450
    {
451
        $path = Util::normalizePath($path);
452
453
        if (($object = $this->getAdapter()->getSize($path)) === false || ! isset($object['size'])) {
454
            return false;
455
        }
456
457
        return (int) $object['size'];
458
    }
459
460
    /**
461
     * @inheritdoc