Passed
Push — master ( cd2e0e...e511a9 )
by Vicens
02:24
created
src/Providers/CaptchaServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $this->loadRoutesFrom(__DIR__ . '/../routes.php');
31 31
 
32 32
         // 注册验证器
33
-        Validator::extend('captcha', function ($attribute, $value) {
33
+        Validator::extend('captcha', function($attribute, $value) {
34 34
 
35 35
             return $this->app['captcha']->check($value);
36 36
         });
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->mergeConfigFrom(__DIR__ . '/../config.php', 'captcha');
48 48
 
49 49
         // 注册服务
50
-        $this->app->singleton('captcha', function () {
50
+        $this->app->singleton('captcha', function() {
51 51
 
52 52
             $config = Config::get('captcha', array());
53 53
 
Please login to merge, or discard this patch.
src/Middleware/CaptchaMiddleware.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * 验证
41 41
      *
42 42
      * @param $request
43
-     * @param $captchaKey
43
+     * @param string $captchaKey
44 44
      */
45 45
     protected function validate($request, $captchaKey)
46 46
     {
Please login to merge, or discard this patch.