@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | app('router')->group($this->middlewareGroupExists('web') |
16 | 16 | ? ['middleware' => 'web'] |
17 | - : [], function () { |
|
17 | + : [], function() { |
|
18 | 18 | require __DIR__ . '/../../routes/web.php'; |
19 | 19 | }); |
20 | 20 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $routes = collect(app('router')->getRoutes()->getRoutes()); |
50 | 50 | |
51 | - return $routes->reduce(function ($carry, Route $route) use ($group) { |
|
51 | + return $routes->reduce(function($carry, Route $route) use ($group) { |
|
52 | 52 | $carry = ($carry ?? false) ?: false; |
53 | 53 | $actions = (array) $route->getAction(); |
54 | 54 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | private function shouldRegisterMiddleware() : bool |
66 | 66 | { |
67 | - return (! request()->ajax() |
|
67 | + return (!request()->ajax() |
|
68 | 68 | && (php_sapi_name() === 'fpm-fcgi' || app('env') === 'testing')); |
69 | 69 | } |
70 | 70 | } |
@@ -4,13 +4,13 @@ |
||
4 | 4 | use GeneaLabs\LaravelCaffeine\Http\Controllers\Test; |
5 | 5 | |
6 | 6 | $dripRoute = config('genealabs-laravel-caffeine.route', 'genealabs/laravel-caffeine/drip'); |
7 | -Route::get($dripRoute, Drip::class.'@drip'); |
|
7 | +Route::get($dripRoute, Drip::class . '@drip'); |
|
8 | 8 | |
9 | 9 | Route::group([ |
10 | 10 | 'middleware' => ['web'], |
11 | 11 | 'as' => 'genealabs-laravel-caffeine.', |
12 | 12 | 'prefix' => 'tests' |
13 | -], function () { |
|
13 | +], function() { |
|
14 | 14 | Route::any('form', Test::class . '@drippedForm') |
15 | 15 | ->name('tests.form'); |
16 | 16 | Route::any('dripped-form', Test::class . '@drippedForm'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | $content = $response->getContent(); |
14 | 14 | |
15 | - if (! is_string($content)) { |
|
15 | + if (!is_string($content)) { |
|
16 | 16 | return $response; |
17 | 17 | } |
18 | 18 | |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | '<meta\s+', |
36 | 36 | 'name\s*=\s*[\'"]csrf[_-]token[\'"]', |
37 | 37 | ]); |
38 | - $hasNoFormToken = ! preg_match($formTokenRegexp, $content); |
|
39 | - $hasNoMetaToken = ! preg_match($metaTokenRegexp, $content); |
|
38 | + $hasNoFormToken = !preg_match($formTokenRegexp, $content); |
|
39 | + $hasNoMetaToken = !preg_match($metaTokenRegexp, $content); |
|
40 | 40 | |
41 | 41 | if ($hasNoFormToken && $hasNoMetaToken) { |
42 | 42 | return $response; |