| 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 |
||
| 23 | public function showImage($meetingId) |
||
| 24 | { |
||
| 25 | $meeting = Group::findOrFail($meetingId); |
||
| 26 | //$this->authorize($meeting); |
||
| 27 | $ret = self::getImg($meeting); |
||
|
|
|||
| 28 | $blank = storage_path('img/meetings.jpg'); |
||
| 29 | if ($ret === false) |
||
| 30 | return (new Response(file_get_contents($blank), 200)) |
||
| 31 | ->header('Content-Type', 'image/jpeg'); |
||
| 32 | return (new Response($ret, 200)) |
||
| 33 | ->header('Content-Type', 'image/jpeg'); |
||
| 34 | } |
||
| 35 | |||
| 37 |
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.