Code Duplication    Length = 7-7 lines in 3 locations

src/InMemoryFileSystem.php 3 locations

@@ 20-26 (lines=7) @@
17
    /** @var array */
18
    private $fileSystem = [];
19
20
    protected function dirExistsRaw(string $path): bool
21
    {
22
        return array_key_exists(
23
                $path,
24
                $this->fileSystem
25
            ) && $this->fileSystem[$path][self::KEY_TYPE] === self::DIR_DISCRIMINATOR;
26
    }
27
28
    protected function linkExistsRaw(string $path): bool
29
    {
@@ 28-34 (lines=7) @@
25
            ) && $this->fileSystem[$path][self::KEY_TYPE] === self::DIR_DISCRIMINATOR;
26
    }
27
28
    protected function linkExistsRaw(string $path): bool
29
    {
30
        return array_key_exists(
31
                $path,
32
                $this->fileSystem
33
            ) && $this->fileSystem[$path][self::KEY_TYPE] === self::LINK_DISCRIMINATOR;
34
    }
35
36
    protected function fileExistsRaw(string $path): bool
37
    {
@@ 36-42 (lines=7) @@
33
            ) && $this->fileSystem[$path][self::KEY_TYPE] === self::LINK_DISCRIMINATOR;
34
    }
35
36
    protected function fileExistsRaw(string $path): bool
37
    {
38
        return array_key_exists(
39
                $path,
40
                $this->fileSystem
41
            ) && $this->fileSystem[$path][self::KEY_TYPE] === self::FILE_DISCRIMINATOR;
42
    }
43
44
    protected function getFileCreationTimestampRaw(string $path): int
45
    {