Test Failed
Push — master ( 892598...558941 )
by Antonio Carlos
11:17
created
src/Support/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             return $callback();
125 125
         }
126 126
 
127
-        $key = config('health.cache.key') . $key;
127
+        $key = config('health.cache.key').$key;
128 128
 
129 129
         $this->flush(false, $key);
130 130
 
Please login to merge, or discard this patch.
src/Support/helpers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
     function package_resources_dir()
46 46
     {
47 47
         return (
48
-            package_dir() .
49
-            DIRECTORY_SEPARATOR .
50
-            'config' .
51
-            DIRECTORY_SEPARATOR .
48
+            package_dir().
49
+            DIRECTORY_SEPARATOR.
50
+            'config'.
51
+            DIRECTORY_SEPARATOR.
52 52
             'resources'
53 53
         );
54 54
     }
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
         // Optional wrapper(s).
67 67
         $regExp =
68 68
             // Optional root prefix.
69
-            '%^(?<wrappers>(?:[[:print:]]{2,}://)*)' .
70
-            '(?<root>(?:[[:alpha:]]:/|/)?)' .
69
+            '%^(?<wrappers>(?:[[:print:]]{2,}://)*)'.
70
+            '(?<root>(?:[[:alpha:]]:/|/)?)'.
71 71
             // Actual path.
72 72
             '(?<path>(?:[[:print:]]*))$%';
73 73
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $f_base = floor($base);
99 99
 
100
-        return round(pow(1024, $base - floor($base)), 1) . $suffix[$f_base];
100
+        return round(pow(1024, $base - floor($base)), 1).$suffix[$f_base];
101 101
     }
102 102
 }
103 103
 
Please login to merge, or discard this patch.
src/Support/ResourceLoader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         if (
43 43
             is_array($filters = config($configKey = 'health.resources.enabled'))
44 44
         ) {
45
-            return collect($resources)->filter(function ($resource, $name) use (
45
+            return collect($resources)->filter(function($resource, $name) use (
46 46
                 $filters
47 47
             ) {
48 48
                 foreach ($filters as $filter) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         return $this->replaceExecutableCode(
99 99
             $this->loadResourcesFiles()
100
-        )->mapWithKeys(function ($value, $key) {
100
+        )->mapWithKeys(function($value, $key) {
101 101
             return [$this->removeExtension($key) => $value];
102 102
         });
103 103
     }
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
      */
110 110
     private function replaceExecutableCode($files)
111 111
     {
112
-        return $files->map(function ($item) {
112
+        return $files->map(function($item) {
113 113
             return collect($item)
114
-                ->map(function ($value) {
114
+                ->map(function($value) {
115 115
                     return (new Resolver())->recursivelyFindAndReplaceExecutableCode(
116 116
                         $value
117 117
                     );
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
      */
181 181
     private function sanitizeResources($resources)
182 182
     {
183
-        return $resources->map(function ($resource) {
184
-            return collect($resource)->mapWithKeys(function ($value, $key) {
183
+        return $resources->map(function($resource) {
184
+            return collect($resource)->mapWithKeys(function($value, $key) {
185 185
                 return [$this->sanitizeKey($key) => $value];
186 186
             });
187 187
         });
Please login to merge, or discard this patch.
src/Checkers/Broadcasting.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     protected function bootRouter()
16 16
     {
17
-        $this->target->routes->each(function ($route, $name) {
17
+        $this->target->routes->each(function($route, $name) {
18 18
             $this->registerRoute($route, $name);
19 19
         });
20 20
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function createPingRow()
72 72
     {
73
-        info('Laravel Health Panel - PING - secret: ' . $this->target->secret);
73
+        info('Laravel Health Panel - PING - secret: '.$this->target->secret);
74 74
 
75 75
         return [
76 76
             'pinged_at' => Carbon::now(),
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function pong($secret)
99 99
     {
100
-        info('Laravel Health Panel - PONG - secret: ' . $secret);
100
+        info('Laravel Health Panel - PONG - secret: '.$secret);
101 101
 
102
-        $this->database = $this->database->map(function ($item) use ($secret) {
102
+        $this->database = $this->database->map(function($item) use ($secret) {
103 103
             if ($item['secret'] == $secret) {
104 104
                 $item['ponged_at'] = Carbon::now();
105 105
             }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $timedout = false;
121 121
 
122
-        $this->database = $this->database->filter(function ($item) use (
122
+        $this->database = $this->database->filter(function($item) use (
123 123
             &$timedout
124 124
         ) {
125 125
             if (!$item['ponged_at']) {
Please login to merge, or discard this patch.
src/Checkers/DirectoryAndFilePresence.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         return $this->makeResult(
43 43
             false,
44
-            $this->target->getErrorMessage() . ' - ' . implode(' ', $messages)
44
+            $this->target->getErrorMessage().' - '.implode(' ', $messages)
45 45
         );
46 46
     }
47 47
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $messages = [];
56 56
 
57 57
         $result = collect($this->getFiles())
58
-            ->map(function ($files, $type) use (&$messages) {
58
+            ->map(function($files, $type) use (&$messages) {
59 59
                 $isGood = true;
60 60
 
61 61
                 $files = collect($files);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
                 return $isGood;
75 75
             })
76
-            ->filter(function ($value) {
76
+            ->filter(function($value) {
77 77
                 return $value === false;
78 78
             });
79 79
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function buildFileExistsChecker()
100 100
     {
101
-        return function ($file) {
101
+        return function($file) {
102 102
             return $this->fileExists($file);
103 103
         };
104 104
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function buildFileDoesNotExistsChecker()
112 112
     {
113
-        return function ($file) {
113
+        return function($file) {
114 114
             return $this->fileDoesNotExists($file);
115 115
         };
116 116
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function buildIsDirectoryChecker()
124 124
     {
125
-        return function ($file) {
125
+        return function($file) {
126 126
             return $this->isDirectory($file);
127 127
         };
128 128
     }
Please login to merge, or discard this patch.
src/Checkers/PortCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     protected function hosnameAndIp($hostname, $ipAdress)
34 34
     {
35
-        return $hostname . ($hostname != $ipAdress ? " ({$ipAdress})" : '');
35
+        return $hostname.($hostname != $ipAdress ? " ({$ipAdress})" : '');
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/Checkers/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         file_put_contents($file, $content);
49 49
 
50
-        register_shutdown_function(function () use ($file) {
50
+        register_shutdown_function(function() use ($file) {
51 51
             if (file_exists($file)) {
52 52
                 unlink($file);
53 53
             }
Please login to merge, or discard this patch.
src/Checkers/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     {
168 168
         return preg_replace(
169 169
             '|^((https?:)?\/\/)?(.*)|',
170
-            'http' . ($secure ? 's' : '') . '://\\3',
170
+            'http'.($secure ? 's' : '').'://\\3',
171 171
             $url
172 172
         );
173 173
     }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     private function onStatsCallback()
181 181
     {
182
-        return function (TransferStats $stats) {
182
+        return function(TransferStats $stats) {
183 183
             $this->totalTime = $stats->getTransferTime();
184 184
         };
185 185
     }
Please login to merge, or discard this patch.
src/Checkers/NotInDebugMode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,10 +68,10 @@
 block discarded – undo
68 68
     protected function normalizeMatches($matches)
69 69
     {
70 70
         return collect($matches)
71
-            ->filter(function ($item, $key) {
71
+            ->filter(function($item, $key) {
72 72
                 return !is_numeric($key);
73 73
             })
74
-            ->map(function ($item, $key) {
74
+            ->map(function($item, $key) {
75 75
                 $return = $item[0];
76 76
 
77 77
                 if (starts_with($key, 'load')) {
Please login to merge, or discard this patch.