Test Failed
Push — master ( bf20d9...100aa4 )
by Mike
05:28
created
src/Providers/Service.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     {
13 13
         app('router')->group($this->middlewareGroupExists('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') {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $routes = collect(app('router')->getRoutes()->getRoutes());
59 59
 
60
-        return $routes->reduce(function ($carry, Route $route) use ($group) {
60
+        return $routes->reduce(function($carry, Route $route) use ($group) {
61 61
             $carry = ($carry ?? false) ?: false;
62 62
             $actions = (array) $route->getAction();
63 63
 
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
     protected function shouldRegisterGlobalMiddleware() : bool
75 75
     {
76
-        return (! request()->ajax()
77
-            && ! $this->shouldRegisterRouteMiddleware()
76
+        return (!request()->ajax()
77
+            && !$this->shouldRegisterRouteMiddleware()
78 78
             && (php_sapi_name() === 'fpm-fcgi'
79 79
                 || php_sapi_name() === 'apache2handler'
80 80
                 || config("app.env") === 'internaltesting'));
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
 
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
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;
Please login to merge, or discard this patch.