@@ -4,4 +4,4 @@ |
||
| 4 | 4 | |
| 5 | 5 | $dripRoute = config('genealabs-laravel-caffeine.route', 'genealabs/laravel-caffeine/drip'); |
| 6 | 6 | |
| 7 | -Route::get($dripRoute, Drip::class.'@drip'); |
|
| 7 | +Route::get($dripRoute, Drip::class . '@drip'); |
|
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | 'as' => 'genealabs-laravel-caffeine.', |
| 6 | 6 | 'prefix' => 'tests', |
| 7 | 7 | 'namespace' => 'GeneaLabs\LaravelCaffeine\Tests\Http\Controllers', |
| 8 | -], function () { |
|
| 8 | +], function() { |
|
| 9 | 9 | Route::any('form', 'Test@drippedForm') |
| 10 | 10 | ->name('tests.form'); |
| 11 | 11 | Route::any('dripped-form', 'Test@drippedForm'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | $content = $response->getContent(); |
| 14 | 14 | |
| 15 | - if (! is_string($content) || strlen(trim($content)) === 0) { |
|
| 15 | + if (!is_string($content) || strlen(trim($content)) === 0) { |
|
| 16 | 16 | return $response; |
| 17 | 17 | } |
| 18 | 18 | |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | $metaTokenRegexp = $this->makeRegex([ |
| 35 | 35 | "<meta.*?name\s*=\s*[\'\"]csrf[_-]token[\'\"]", |
| 36 | 36 | ]); |
| 37 | - $hasNoFormToken = ! preg_match($formTokenRegexp, $content); |
|
| 38 | - $hasNoMetaToken = ! preg_match($metaTokenRegexp, $content); |
|
| 37 | + $hasNoFormToken = !preg_match($formTokenRegexp, $content); |
|
| 38 | + $hasNoMetaToken = !preg_match($metaTokenRegexp, $content); |
|
| 39 | 39 | |
| 40 | 40 | if ($hasNoFormToken && $hasNoMetaToken) { |
| 41 | 41 | return $response; |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | app('router')->group(app("router")->hasMiddlewareGroup('web') |
| 14 | 14 | ? ['middleware' => 'web'] |
| 15 | - : [], function () { |
|
| 15 | + : [], function() { |
|
| 16 | 16 | require __DIR__ . '/../../routes/web.php'; |
| 17 | 17 | |
| 18 | 18 | if (config("app.env") === 'internaltesting') { |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | protected function shouldRegisterGlobalMiddleware() : bool |
| 57 | 57 | { |
| 58 | - return (! request()->ajax() |
|
| 59 | - && ! $this->shouldRegisterRouteMiddleware() |
|
| 58 | + return (!request()->ajax() |
|
| 59 | + && !$this->shouldRegisterRouteMiddleware() |
|
| 60 | 60 | && (php_sapi_name() === 'fpm-fcgi' |
| 61 | 61 | || php_sapi_name() === 'cgi-fcgi' |
| 62 | 62 | || php_sapi_name() === 'apache2handler' |