@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->mergeConfigFrom(__DIR__ . '/../../config/captcha.php', 'captcha'); |
| 42 | 42 | |
| 43 | 43 | //注册到容器中 |
| 44 | - $this->app->singleton('captcha', function () { |
|
| 44 | + $this->app->singleton('captcha', function() { |
|
| 45 | 45 | |
| 46 | 46 | $config = config('captcha', array()); |
| 47 | 47 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * 延迟加载的服务 |
| 51 | 51 | * |
| 52 | - * @return array |
|
| 52 | + * @return string[] |
|
| 53 | 53 | */ |
| 54 | 54 | public function provides() |
| 55 | 55 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public static function routes($path = '/captcha') |
| 48 | 48 | { |
| 49 | 49 | |
| 50 | - app('router')->get($path, function () { |
|
| 50 | + app('router')->get($path, function() { |
|
| 51 | 51 | |
| 52 | 52 | return app('captcha')->make()->response(); |
| 53 | 53 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | public static function validations() |
| 71 | 71 | { |
| 72 | 72 | |
| 73 | - app('validator')->extend('captcha', function ($attribute, $value) { |
|
| 73 | + app('validator')->extend('captcha', function($attribute, $value) { |
|
| 74 | 74 | |
| 75 | 75 | return app('captcha')->check($value); |
| 76 | 76 | }); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * 生成验证码图片标签 |
| 24 | 24 | * |
| 25 | - * @return string |
|
| 25 | + * @return HtmlString |
|
| 26 | 26 | */ |
| 27 | 27 | public static function image() |
| 28 | 28 | { |