| Conditions | 6 | 
| Paths | 5 | 
| Total Lines | 21 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 6.1308 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 29 | 3 | public function displayAction()  | 
            |
| 30 |     { | 
            ||
| 31 | 3 |         $relativePath = $this->plugin('params')->fromQuery('relativePath'); | 
            |
| 
                                                                                                    
                        
                         | 
                |||
| 32 | 3 |         $filter       = $this->plugin('params')->fromRoute('filter'); | 
            |
| 33 | 3 |         if (!$relativePath || !$filter) { | 
            |
| 34 | return $this->notFoundAction();  | 
            ||
| 35 | }  | 
            ||
| 36 |         try { | 
            ||
| 37 | 3 | $imageData = $this->imageService->getImage($relativePath, $filter);  | 
            |
| 38 | 2 |         } catch (Exception\ImageNotFoundException $e) { | 
            |
| 39 | 1 | return $this->notFoundAction();  | 
            |
| 40 | 1 |         } catch (Exception\FilterNotFoundException $e) { | 
            |
| 41 | 1 | return $this->notFoundAction();  | 
            |
| 42 | }  | 
            ||
| 43 | |||
| 44 | 1 |         if (!$imageData) { | 
            |
| 45 | return $this->notFoundAction();  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | 1 | return new ImageModel($imageData['image'], $imageData['format'], $imageData['imageOutputOptions']);  | 
            |
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 | 
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.