Lines
0.00%
0 / 2
Methods
0.00%
0 / 2
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| valid | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| isReadable | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 30 | final class InMemoryHtaccessFile extends SplTempFileObject | |
| 31 | { | |
| 32 | public function valid(): bool | |
| 33 | { | |
| 34 | return !$this->eof(); | |
| 35 | } | |
| 36 | ||
| 37 | /** | |
| 38 | * The parser's readability guard uses SplFileInfo::isReadable(), which returns | |
| 39 | * false for in-memory temp objects because they have no filesystem path. The | |
| 40 | * content is always available here, so advertise the file as readable. | |
| 41 | */ | |
| 42 | public function isReadable(): bool | |
| 43 | { | |
| 44 | return true; | |
| 45 | } | |
| 46 | } |