Code Duplication    Length = 7-7 lines in 3 locations

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(

src/voku/cache/AdapterOpCache.php 1 location

@@ 48-54 (lines=7) @@
45
    {
46
        $path = $this->getFileName($key);
47
48
        if (
49
            \file_exists($path) === false
50
            ||
51
            \filesize($path) === 0
52
        ) {
53
            return null;
54
        }
55
56
        /** @noinspection PhpIncludeInspection */
57
        $data = include $path;