@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | return CheckResult::failure('Elasticsearch is not responding properly'); |
30 | 30 | } catch (\Exception $e) { |
31 | - return CheckResult::failure('Elasticsearch connection failed: ' . $e->getMessage()); |
|
31 | + return CheckResult::failure('Elasticsearch connection failed: '.$e->getMessage()); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | // Test connection by getting server stats |
32 | 32 | $stats = $memcached->getStats(); |
33 | 33 | |
34 | - if (empty($stats) || !isset($stats[$this->host . ':' . $this->port])) { |
|
34 | + if (empty($stats) || !isset($stats[$this->host.':'.$this->port])) { |
|
35 | 35 | return CheckResult::failure('Memcached server is not responding'); |
36 | 36 | } |
37 | 37 | |
38 | 38 | // Test basic functionality |
39 | - $testKey = 'health_check_' . time(); |
|
39 | + $testKey = 'health_check_'.time(); |
|
40 | 40 | $testValue = 'test'; |
41 | 41 | |
42 | 42 | if (!$memcached->set($testKey, $testValue, 10)) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | return CheckResult::success('Memcached is healthy'); |
53 | 53 | } catch (\Exception $e) { |
54 | - return CheckResult::failure('Memcached connection failed: ' . $e->getMessage()); |
|
54 | + return CheckResult::failure('Memcached connection failed: '.$e->getMessage()); |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | return CheckResult::success('RabbitMQ is healthy'); |
39 | 39 | } catch (\Exception $e) { |
40 | - return CheckResult::failure('RabbitMQ connection failed: ' . $e->getMessage()); |
|
40 | + return CheckResult::failure('RabbitMQ connection failed: '.$e->getMessage()); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | try { |
22 | 22 | // Check if supervisorctl is available |
23 | 23 | if (!file_exists($this->supervisorctlPath)) { |
24 | - return CheckResult::failure('Supervisorctl not found at: ' . $this->supervisorctlPath); |
|
24 | + return CheckResult::failure('Supervisorctl not found at: '.$this->supervisorctlPath); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | // Execute supervisorctl status command |
28 | 28 | $output = []; |
29 | 29 | $returnCode = 0; |
30 | - exec($this->supervisorctlPath . ' status 2>&1', $output, $returnCode); |
|
30 | + exec($this->supervisorctlPath.' status 2>&1', $output, $returnCode); |
|
31 | 31 | |
32 | 32 | if ($returnCode !== 0) { |
33 | - return CheckResult::failure('Supervisor is not running or not accessible: ' . implode(' ', $output)); |
|
33 | + return CheckResult::failure('Supervisor is not running or not accessible: '.implode(' ', $output)); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | // Check if any processes are in FATAL state |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | if (!empty($fatalProcesses)) { |
45 | - return CheckResult::failure('Supervisor has processes in FATAL state: ' . implode(', ', $fatalProcesses)); |
|
45 | + return CheckResult::failure('Supervisor has processes in FATAL state: '.implode(', ', $fatalProcesses)); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | return CheckResult::success('Supervisor is healthy'); |
49 | 49 | } catch (\Exception $e) { |
50 | - return CheckResult::failure('Supervisor check failed: ' . $e->getMessage()); |
|
50 | + return CheckResult::failure('Supervisor check failed: '.$e->getMessage()); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 |