| @@ -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 |      { | 
| @@ -30,7 +30,7 @@ discard block | ||
| 30 | 30 | $this->loadRoutesFrom(__DIR__ . '/../routes.php'); | 
| 31 | 31 | |
| 32 | 32 | // 注册验证器 | 
| 33 | -        Validator::extend(Config::get('captcha.validationName', 'captcha'), function ($attribute, $value) { | |
| 33 | +        Validator::extend(Config::get('captcha.validationName', 'captcha'), function($attribute, $value) { | |
| 34 | 34 | |
| 35 | 35 | return $this->app['captcha']->check($value); | 
| 36 | 36 | }); | 
| @@ -47,7 +47,7 @@ discard block | ||
| 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 | |
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | use Illuminate\Support\Facades\Config; | 
| 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 | }); | 
| 12 | 12 | \ No newline at end of file |