Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 34 | protected function internalGetItem(&$normalizedKey, &$success = null, &$casToken = null) |
|
36 | { |
||
37 | 34 | $key = $this->getOptions()->getNamespace() . $normalizedKey; |
|
38 | 34 | $fetched = $this->cache->fetch($key); |
|
39 | 34 | $success = ($fetched !== false); |
|
40 | |||
41 | 34 | if ($success) { |
|
42 | 27 | $casToken = $fetched; |
|
43 | |||
44 | 27 | return $fetched; |
|
45 | } |
||
46 | |||
47 | 19 | return null; |
|
48 | } |
||
49 | |||
74 |