Completed
Push — master ( 5482c8...c9885e )
by MeWebStudio - Muharrem
08:52
created

CaptchaController::getCaptchaApi()   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 Mews\Captcha;
4
5
use Illuminate\Routing\Controller;
6
7
/**
8
 * Class CaptchaController
9
 * @package Mews\Captcha
10
 */
11
class CaptchaController extends Controller
12
{
13
14
	/**
15
	 * get CAPTCHA
16
	 *
17
	 * @param \Mews\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
	 * get CAPTCHA api
28
	 *
29
	 * @param \Mews\Captcha\Captcha $captcha
30
	 * @param string $config
31
	 * @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...
32
	 */
33
	public function getCaptchaApi(Captcha $captcha, $config = 'default')
34
	{
35
		return $captcha->create($config, true);
36
	}
37
38
}
39