Code Duplication    Length = 7-7 lines in 2 locations

src/voku/cache/AdapterFile.php 1 location

@@ 140-146 (lines=7) @@
137
  {
138
    $path = $this->getFileName($key);
139
140
    if (
141
        \file_exists($path) === false
142
        ||
143
        \filesize($path) === 0
144
    ) {
145
      return null;
146
    }
147
148
    // init
149
    $string = '';

src/voku/cache/AdapterOpCache.php 1 location

@@ 35-41 (lines=7) @@
32
  {
33
    $path = $this->getFileName($key);
34
35
    if (
36
        \file_exists($path) === false
37
        ||
38
        \filesize($path) === 0
39
    ) {
40
      return null;
41
    }
42
43
    /** @noinspection PhpIncludeInspection */
44
    $data = include $path;