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