@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * provides |
69 | 69 | * |
70 | - * @return array |
|
70 | + * @return string[] |
|
71 | 71 | */ |
72 | 72 | public function provides() |
73 | 73 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | //注册服务 |
49 | - $this->app->singleton('captcha', function () use ($config) { |
|
49 | + $this->app->singleton('captcha', function() use ($config) { |
|
50 | 50 | return new Captcha($config); |
51 | 51 | }); |
52 | 52 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ); |
58 | 58 | |
59 | 59 | // 注册验证器 |
60 | - Validator::extend(Arr::get($config, 'validationName', 'captcha'), function ($attribute, $value) { |
|
60 | + Validator::extend(Arr::get($config, 'validationName', 'captcha'), function($attribute, $value) { |
|
61 | 61 | |
62 | 62 | return $this->app['captcha']->check($value); |
63 | 63 | }); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Vicens\Captcha\Facades\Captcha; |
6 | 6 | |
7 | 7 | // 注册路由 |
8 | -Route::get(Config::get('captcha.route', 'captcha'), function () { |
|
8 | +Route::get(Config::get('captcha.route', 'captcha'), function() { |
|
9 | 9 | |
10 | 10 | return Captcha::make()->response(); |
11 | 11 |