Code Duplication    Length = 7-7 lines in 3 locations

src/voku/cache/AdapterFile.php 1 location

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

src/voku/cache/AdapterFileSimple.php 1 location

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

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;