Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public function autorun() : void |
|
25 | { |
||
26 | 3 | $filterBoolean = new Filter\Boolean(); |
|
27 | 3 | $noCache = $filterBoolean->sanitize($this->_request->getQuery('no-cache')); |
|
|
|||
28 | |||
29 | /* set the registry */ |
||
30 | |||
31 | 3 | $this->_registry->set('noAssetCache', false); |
|
32 | 3 | $this->_registry->set('noPageCache', false); |
|
33 | if ($this->_registry->get('loggedIn') === $this->_registry->get('token') || $noCache) |
||
34 | 2 | { |
|
35 | $this->_registry->set('noAssetCache', true); |
||
36 | 3 | $this->_registry->set('noPageCache', true); |
|
37 | } |
||
38 | } |
||
39 | } |
||
40 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.