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

LumenCaptchaController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCaptcha() 0 4 1
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