captcha_refresh()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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
Bug introduced by
The method generate() 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 ignore-call  annotation

12
        return app('shetabit-captcha')->/** @scrutinizer ignore-call */ generate();

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...
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
Bug introduced by
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 ignore-call  annotation

38
        return app('shetabit-captcha')->/** @scrutinizer ignore-call */ verify($value);

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