Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
42 | * Ignore refresh to let normal lookup happen when the request comes from |
||
43 | * a non-authorized client. |
||
44 | * |
||
45 | * @param CacheEvent $event |
||
46 | */ |
||
47 | 5 | public function handleRefresh(CacheEvent $event) |
|
48 | { |
||
49 | 5 | $request = $event->getRequest(); |
|
50 | 5 | if (!$request->isMethodSafe() |
|
51 | 5 | || !$request->isNoCache() |
|
52 | 4 | || !$this->isRequestAllowed($request) |
|
53 | 5 | ) { |
|
62 |