Code Duplication    Length = 7-7 lines in 3 locations

src/voku/cache/AdapterOpCache.php 1 location

@@ 43-49 (lines=7) @@
40
    {
41
        $path = $this->getFileName($key);
42
43
        if (
44
            \file_exists($path) === false
45
            ||
46
            \filesize($path) === 0
47
        ) {
48
            return null;
49
        }
50
51
        /** @noinspection PhpIncludeInspection */
52
        $data = include $path;

src/voku/cache/AdapterFile.php 1 location

@@ 19-25 (lines=7) @@
16
    {
17
        $path = $this->getFileName($key);
18
19
        if (
20
            \file_exists($path) === false
21
            ||
22
            \filesize($path) === 0
23
        ) {
24
            return null;
25
        }
26
27
        // init
28
        $string = '';

src/voku/cache/AdapterFileSimple.php 1 location

@@ 38-44 (lines=7) @@
35
    {
36
        $path = $this->getFileName($key);
37
38
        if (
39
            \file_exists($path) === false
40
            ||
41
            \filesize($path) === 0
42
        ) {
43
            return null;
44
        }
45
46
        // init
47
        $string = \file_get_contents(