@@ -22,7 +22,7 @@ |
||
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) { |
@@ -26,7 +26,7 @@ |
||
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(); |
@@ -22,7 +22,7 @@ |
||
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([ |
@@ -25,7 +25,7 @@ |
||
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 | } |
@@ -33,9 +33,9 @@ |
||
33 | 33 | |
34 | 34 | $output = $process->getOutput(); |
35 | 35 | |
36 | - if (! $process->isSuccessful()) { |
|
36 | + if (!$process->isSuccessful()) { |
|
37 | 37 | $builder->down(); |
38 | - } elseif ($result && ! preg_match("|{$result}|", $output)) { |
|
38 | + } elseif ($result && !preg_match("|{$result}|", $output)) { |
|
39 | 39 | $builder->down(); |
40 | 40 | } |
41 | 41 | } |