| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | #[Override] |
||
| 29 | public function get(): string |
||
| 30 | { |
||
| 31 | $cacheDir = $this->appMeta->tmpDir . self::CACHE_DIRNAME; |
||
| 32 | if (! is_writable($cacheDir) && ! @mkdir($cacheDir)) { |
||
| 33 | // @codeCoverageIgnoreStart |
||
| 34 | throw new DirectoryNotWritableException($cacheDir); |
||
| 35 | // @codeCoverageIgnoreEnd |
||
| 36 | } |
||
| 37 | |||
| 38 | return $cacheDir; |
||
|
|
|||
| 39 | } |
||
| 41 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: