Conditions | 4 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
27 | 6 | public function getCacheDir() |
|
28 | { |
||
29 | 6 | $path = defined('SYMFONY_CACHE_DIR') ? SYMFONY_CACHE_DIR : sys_get_temp_dir().'/foshttpcache-symfony'; |
|
30 | 6 | if (!$path || '/' === $path) { |
|
31 | 1 | throw new \RuntimeException('Invalid test setup, the cache dir is '.$path); |
|
32 | } |
||
33 | |||
34 | 5 | return $path; |
|
35 | } |
||
36 | |||
75 |