| @@ 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 = ''; |
|
| @@ 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( |
|
| @@ 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; |
|