Passed
Push — master ( f4807a...5c5c3f )
by Vicens
04:38
created
src/Providers/CaptchaServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     /**
68 68
      * provides
69 69
      *
70
-     * @return array
70
+     * @return string[]
71 71
      */
72 72
     public function provides()
73 73
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.