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