Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.9765 |
Changes | 0 |
1 | <?php |
||
47 | 1 | protected function createCacheStore($config) |
|
48 | { |
||
49 | 1 | if ($config === true) { |
|
50 | 1 | return new MemoryStore; |
|
51 | } |
||
52 | |||
53 | $cacheManager = $this->getCacheManager(); |
||
54 | |||
55 | return new Cache( |
||
56 | $cacheManager->store($config['store']), |
||
57 | $config['prefix'] ?? 'flysystem', |
||
58 | $config['expire'] ?? null |
||
59 | ); |
||
60 | } |
||
61 | |||
70 |