Passed
Push — master ( 0d1a13...5083ab )
by Svilen
04:31
created
src/Checks/Cli/Exec.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             $dir = $data['dir'] ?? null;
26 26
             $timeout = $data['timeout'] ?? 5;
27 27
 
28
-            $params = ! is_array($params) ? [
28
+            $params = !is_array($params) ? [
29 29
                 $params
30 30
             ] : $params;
31 31
 
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 
39 39
             $output = $process->getOutput();
40 40
 
41
-            if (! $process->isSuccessful()) {
41
+            if (!$process->isSuccessful()) {
42 42
                 $builder->down();
43
-            } elseif ($result && ! preg_match("|{$result}|", $output)) {
43
+            } elseif ($result && !preg_match("|{$result}|", $output)) {
44 44
                 $builder->down();
45 45
             }
46 46
         }
Please login to merge, or discard this patch.
src/Checks/Servers/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
         try {
24 24
             DB::connection()->getPdo();
25
-            if (! DB::connection()->getDatabaseName()) {
25
+            if (!DB::connection()->getDatabaseName()) {
26 26
                 $builder->down()->withData("error", "Could not find the database.");
27 27
             }
28 28
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
src/Checks/Servers/DatabaseTables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $tables = $this->getParam('tables', []);
27 27
             $missing = [];
28 28
             foreach ($tables as $table) {
29
-                if (! DB::getSchemaBuilder()->hasTable($table)) {
29
+                if (!DB::getSchemaBuilder()->hasTable($table)) {
30 30
                     $missing[] = $table;
31 31
 
32 32
                     $builder->down();
Please login to merge, or discard this patch.
src/Services/HealthService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             $class = $check['class'] ?? null;
23 23
             $params = $check['params'] ?? [];
24 24
 
25
-            if (! $class || ! class_exists($class)) {
25
+            if (!$class || !class_exists($class)) {
26 26
 
27 27
                 /** @var Health\Checks\HealthCheckInterface $healthCheck */
28 28
                 $healthCheck = new ErrorCheck([
Please login to merge, or discard this patch.
src/Resources/HealthCheckCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function toArray($request)
27 27
     {
28
-        return $this->collection->transform(function ($item) {
28
+        return $this->collection->transform(function($item) {
29 29
             return new HealthCheck($item);
30 30
         })->values();
31 31
     }
Please login to merge, or discard this patch.