Completed
Push — master ( 0ebdbd...75c9f6 )
by Mike
14s
created
src/Providers/Service.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
                 if (app('env') === 'testing') {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $routes = collect(app('router')->getRoutes()->getRoutes());
62 62
 
63
-        return $routes->reduce(function ($carry, Route $route) use ($group) {
63
+        return $routes->reduce(function($carry, Route $route) use ($group) {
64 64
             $carry = ($carry ?? false) ?: false;
65 65
             $actions = (array) $route->getAction();
66 66
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     protected function shouldRegisterMiddleware() : bool
78 78
     {
79
-        return (! request()->ajax()
79
+        return (!request()->ajax()
80 80
             && (php_sapi_name() === 'fpm-fcgi' || app('env') === 'testing'));
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
tests/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
     'middleware' => ['web'],
7 7
     'as' => 'genealabs-laravel-caffeine.',
8 8
     'prefix' => 'tests'
9
-], function () {
9
+], function() {
10 10
     Route::any('form', Test::class . '@drippedForm')
11 11
         ->name('tests.form');
12 12
     Route::any('dripped-form', Test::class . '@drippedForm');
Please login to merge, or discard this patch.
src/Http/Middleware/LaravelCaffeineDripMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
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;
Please login to merge, or discard this patch.