@@ -232,8 +232,7 @@ discard block |
||
232 | 232 | $this->height |
233 | 233 | ); |
234 | 234 | $this->canvas->insert($this->image); |
235 | - } |
|
236 | - else |
|
235 | + } else |
|
237 | 236 | { |
238 | 237 | $this->image = $this->canvas; |
239 | 238 | } |
@@ -351,8 +350,7 @@ discard block |
||
351 | 350 | if ( ! empty($this->fontColors)) |
352 | 351 | { |
353 | 352 | $color = $this->fontColors[rand(0, count($this->fontColors) - 1)]; |
354 | - } |
|
355 | - else |
|
353 | + } else |
|
356 | 354 | { |
357 | 355 | $color = [rand(0, 255), rand(0, 255), rand(0, 255)]; |
358 | 356 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | // HTTP routing |
26 | 26 | if (strpos($this->app->version(), 'Lumen') !== false) { |
27 | - $this->app->get('captcha[/{config}]', 'Mews\Captcha\LumenCaptchaController@getCaptcha'); |
|
27 | + $this->app->get('captcha[/{config}]', 'Mews\Captcha\LumenCaptchaController@getCaptcha'); |
|
28 | 28 | } else { |
29 | 29 | if ((double) $this->app->version() >= 5.2) { |
30 | 30 | $this->app['router']->get('captcha/{config?}', '\Mews\Captcha\CaptchaController@getCaptcha')->middleware('web'); |