| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function handle(ServerRequestInterface $request) |
||
| 40 | { |
||
| 41 | // Try to get from cache |
||
| 42 | $cacheKey = 'o2output_' . underscore(server_request()->getUri()->segments->__toString()); |
||
| 43 | |||
| 44 | $cacheHandle = cache()->getItemPool('default'); |
||
| 45 | |||
| 46 | if (cache()->hasItemPool('output')) { |
||
| 47 | $cacheHandle = cache()->getItemPool('output'); |
||
| 48 | } |
||
| 49 | |||
| 50 | if ($cacheHandle instanceof \Psr\Cache\CacheItemPoolInterface) { |
||
| 51 | if ($cacheHandle->hasItem($cacheKey)) { |
||
| 52 | output() |
||
| 53 | ->setContentType('text/html') |
||
|
|
|||
| 54 | ->send($cacheHandle->getItem($cacheKey)->get()); |
||
| 55 | } |
||
| 58 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.