| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 25 | public function showImage($meetingId) |
||
| 26 | { |
||
| 27 | $meeting = Meeting::findOrFail($meetingId); |
||
| 28 | //$this->authorize($meeting); |
||
| 29 | $ret = self::getImg($meeting); |
||
| 30 | $blank = storage_path('img/meetings.jpg'); |
||
| 31 | if ($ret === false) |
||
| 32 | return (new Response(file_get_contents($blank), 200)) |
||
| 33 | ->header('Content-Type', 'image/jpeg'); |
||
| 34 | return (new Response($ret, 200)) |
||
| 35 | ->header('Content-Type', 'image/jpeg'); |
||
| 36 | } |
||
| 37 | |||
| 46 |
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.