@@ -11,32 +11,32 @@ |
||
| 11 | 11 | class CaptchaController extends Controller |
| 12 | 12 | { |
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * get CAPTCHA |
|
| 16 | - * |
|
| 17 | - * @param \Mews\Captcha\Captcha $captcha |
|
| 18 | - * @param string $config |
|
| 19 | - * @return \Intervention\Image\ImageManager->response |
|
| 20 | - */ |
|
| 21 | - public function getCaptcha(Captcha $captcha, $config = 'default') |
|
| 22 | - { |
|
| 23 | - if (ob_get_contents()) |
|
| 24 | - { |
|
| 25 | - ob_clean(); |
|
| 26 | - } |
|
| 27 | - return $captcha->create($config); |
|
| 28 | - } |
|
| 14 | + /** |
|
| 15 | + * get CAPTCHA |
|
| 16 | + * |
|
| 17 | + * @param \Mews\Captcha\Captcha $captcha |
|
| 18 | + * @param string $config |
|
| 19 | + * @return \Intervention\Image\ImageManager->response |
|
| 20 | + */ |
|
| 21 | + public function getCaptcha(Captcha $captcha, $config = 'default') |
|
| 22 | + { |
|
| 23 | + if (ob_get_contents()) |
|
| 24 | + { |
|
| 25 | + ob_clean(); |
|
| 26 | + } |
|
| 27 | + return $captcha->create($config); |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * get CAPTCHA api |
|
| 32 | - * |
|
| 33 | - * @param \Mews\Captcha\Captcha $captcha |
|
| 34 | - * @param string $config |
|
| 35 | - * @return \Intervention\Image\ImageManager->response |
|
| 36 | - */ |
|
| 37 | - public function getCaptchaApi(Captcha $captcha, $config = 'default') |
|
| 38 | - { |
|
| 39 | - return $captcha->create($config, true); |
|
| 40 | - } |
|
| 30 | + /** |
|
| 31 | + * get CAPTCHA api |
|
| 32 | + * |
|
| 33 | + * @param \Mews\Captcha\Captcha $captcha |
|
| 34 | + * @param string $config |
|
| 35 | + * @return \Intervention\Image\ImageManager->response |
|
| 36 | + */ |
|
| 37 | + public function getCaptchaApi(Captcha $captcha, $config = 'default') |
|
| 38 | + { |
|
| 39 | + return $captcha->create($config, true); |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | 42 | } |