Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0175 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
59 | 2 | protected function resolve($name) |
|
60 | { |
||
61 | 2 | $config = $this->getConfigStore($name); |
|
62 | |||
63 | 2 | if (is_null($config)) { |
|
64 | 2 | if ($name == 'file') { |
|
65 | 2 | $config = ['driver' => 'file']; |
|
66 | } else { |
||
67 | throw new InvalidArgumentException("Cache store [{$name}] is not defined."); |
||
68 | } |
||
69 | } |
||
70 | |||
71 | 2 | return $this->repository( |
|
72 | 2 | $this->createDriver($config['driver'], $config) |
|
73 | ); |
||
85 |