| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 2 | public function __construct($cacheDirectory, $debug) |
|
| 22 | { |
||
| 23 | 2 | $adbackCacheDir = $cacheDirectory . '/adback'; |
|
| 24 | 2 | $file = $adbackCacheDir . '/apiCache.php'; |
|
| 25 | 2 | $fs = new FileSystem(); |
|
| 26 | 2 | if (!$fs->exists($file)) { |
|
| 27 | 2 | $fs->mkdir($adbackCacheDir); |
|
| 28 | 2 | $fs->touch($file); |
|
| 29 | } |
||
| 30 | 2 | $this->cache = new ConfigCache($file, $debug); |
|
| 31 | 2 | } |
|
| 32 | |||
| 79 |