shetabit /
captcha
| 1 | <?php |
||||
| 2 | |||||
| 3 | if ( ! function_exists('captcha')) { |
||||
| 4 | |||||
| 5 | /** |
||||
| 6 | * Return Image |
||||
| 7 | * |
||||
| 8 | * @return resource |
||||
| 9 | */ |
||||
| 10 | function captcha() |
||||
| 11 | { |
||||
| 12 | return app('shetabit-captcha')->generate(); |
||||
|
0 ignored issues
–
show
|
|||||
| 13 | } |
||||
| 14 | } |
||||
| 15 | |||||
| 16 | if ( ! function_exists('captcha_refresh')) { |
||||
| 17 | |||||
| 18 | /** |
||||
| 19 | * Return Image |
||||
| 20 | * |
||||
| 21 | * @return resource |
||||
| 22 | */ |
||||
| 23 | function captcha_refresh() |
||||
| 24 | { |
||||
| 25 | return app('shetabit-captcha')->generate(); |
||||
| 26 | } |
||||
| 27 | } |
||||
| 28 | |||||
| 29 | if ( ! function_exists('captcha_verify')) { |
||||
| 30 | /** |
||||
| 31 | * verify captcha |
||||
| 32 | * |
||||
| 33 | * @param null|$value |
||||
| 34 | * @return mixed |
||||
| 35 | */ |
||||
| 36 | function captcha_verify($value = null) |
||||
| 37 | { |
||||
| 38 | return app('shetabit-captcha')->verify($value); |
||||
|
0 ignored issues
–
show
The method
verify() 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...
|
|||||
| 39 | } |
||||
| 40 | } |
||||
| 41 |
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.