Completed
Pull Request — master (#132)
by
unknown
02:04
created

LumenCaptchaController::getCaptcha()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Heimuya\Captcha;
4
5
use Laravel\Lumen\Routing\Controller;
6
7
/**
8
 * Class CaptchaController
9
 * @package Heimuya\Captcha
10
 */
11
class LumenCaptchaController extends Controller
12
{
13
14
    /**
15
     * get CAPTCHA
16
     *
17
     * @param \Heimuya\Captcha\Captcha $captcha
18
     * @param string $config
19
     * @return \Intervention\Image\ImageManager->response
0 ignored issues
show
Documentation introduced by
The doc-type \Intervention\Image\ImageManager->response could not be parsed: Expected "|" or "end of type", but got ">" at position 33. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
20
     */
21
    public function getCaptcha(Captcha $captcha, $config = 'default')
22
    {
23
        return $captcha->create($config);
24
    }
25
26
}
27