| Conditions | 4 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4.074 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 2 | private function getAbsoluteCacheFilename(): string |
|
| 31 | { |
||
| 32 | 2 | if (!is_dir($this->cacheDir) |
|
| 33 | 2 | && !mkdir($concurrentDirectory = $this->cacheDir, 0777, true) |
|
| 34 | 2 | && !is_dir($concurrentDirectory) |
|
| 35 | ) { |
||
| 36 | throw new RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory)); |
||
| 37 | } |
||
| 38 | |||
| 39 | 2 | return $this->cacheDir . '/' . $this->getCacheFilename(); |
|
| 40 | } |
||
| 42 |