Completed
Pull Request — master (#85)
by
unknown
04:39 queued 11s
created
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.
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.
src/Providers/Service.php 1 patch
Spacing   +4 added lines, -4 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') {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $routes = collect(app('router')->getRoutes()->getRoutes());
69 69
 
70
-        return $routes->reduce(function ($carry, Route $route) use ($group) {
70
+        return $routes->reduce(function($carry, Route $route) use ($group) {
71 71
             $carry = ($carry ?? false) ?: false;
72 72
             $actions = (array) $route->getAction();
73 73
 
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
 
84 84
     protected function shouldRegisterGlobalMiddleware() : bool
85 85
     {
86
-        return (! request()->ajax()
87
-            && ! $this->shouldRegisterRouteMiddleware()
86
+        return (!request()->ajax()
87
+            && !$this->shouldRegisterRouteMiddleware()
88 88
             && (php_sapi_name() === 'fpm-fcgi'
89 89
                 || php_sapi_name() === 'apache2handler'
90 90
                 || app('env') === 'testing'));
Please login to merge, or discard this patch.
tests/Browser/DripTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public function testFormDoesntExpire()
9 9
     {
10
-        $this->browse(function (Browser $browser) {
10
+        $this->browse(function(Browser $browser) {
11 11
             $response = $browser->visit('tests/form');
12 12
             
13 13
             $response->assertSee('Test Form');
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
@@ -5,7 +5,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.