shetabit /
captcha
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace Shetabit\Captcha\Drivers\Simple\Controllers; |
||||
| 4 | |||||
| 5 | use App\Http\Controllers\Controller; |
||||
|
0 ignored issues
–
show
|
|||||
| 6 | use Shetabit\Captcha\CaptchaManager; |
||||
| 7 | |||||
| 8 | /** |
||||
| 9 | * Class CaptchaController |
||||
| 10 | * |
||||
| 11 | */ |
||||
| 12 | class CaptchaController extends Controller |
||||
| 13 | { |
||||
| 14 | /** |
||||
| 15 | * Get captcha image |
||||
| 16 | * |
||||
| 17 | * @return mixed |
||||
| 18 | */ |
||||
| 19 | public function getCaptcha() |
||||
| 20 | { |
||||
| 21 | return response( |
||||
| 22 | app('shetabit-captcha')->prepareDriver()->prepareCaptchaImage(), |
||||
|
0 ignored issues
–
show
The method
prepareDriver() does not exist on Illuminate\Contracts\Foundation\Application.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
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. Loading history...
|
|||||
| 23 | 200, |
||||
| 24 | ['content-type' => 'image/png'] |
||||
| 25 | ); |
||||
| 26 | } |
||||
| 27 | } |
||||
| 28 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths