@@ -25,7 +25,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -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 | } |