Completed
Push — health3 ( 6fecfb...3cfb35 )
by
unknown
57s
created
src/SWP/Bundle/CoreBundle/HealthCheck/ElasticsearchHealthCheck.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
             return new Response('elasticsearch', false, 'Elasticsearch is not responding properly');
34 34
         } catch (\Exception $e) {
35
-            return new Response('elasticsearch', false, 'Elasticsearch connection failed: ' . $e->getMessage());
35
+            return new Response('elasticsearch', false, 'Elasticsearch connection failed: '.$e->getMessage());
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/HealthCheck/MemcachedHealthCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
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 new Response('memcached', false, '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
 block discarded – undo
51 51
             
52 52
             return new Response('memcached', true, 'Memcached is healthy');
53 53
         } catch (\Exception $e) {
54
-            return new Response('memcached', false, 'Memcached connection failed: ' . $e->getMessage());
54
+            return new Response('memcached', false, 'Memcached connection failed: '.$e->getMessage());
55 55
         }
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/HealthCheck/RabbitMQHealthCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             
42 42
             return new Response('rabbitmq', true, 'RabbitMQ is healthy');
43 43
         } catch (\Exception $e) {
44
-            return new Response('rabbitmq', false, 'RabbitMQ connection failed: ' . $e->getMessage());
44
+            return new Response('rabbitmq', false, 'RabbitMQ connection failed: '.$e->getMessage());
45 45
         }
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/HealthCheck/SupervisorHealthCheck.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
         try {
22 22
             // Check if supervisorctl is available
23 23
             if (!file_exists($this->supervisorctlPath)) {
24
-                return new Response('supervisor', false, 'Supervisorctl not found at: ' . $this->supervisorctlPath);
24
+                return new Response('supervisor', false, '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 new Response('supervisor', false, 'Supervisor is not running or not accessible: ' . implode(' ', $output));
33
+                return new Response('supervisor', false, '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
 block discarded – undo
42 42
             }
43 43
             
44 44
             if (!empty($fatalProcesses)) {
45
-                return new Response('supervisor', false, 'Supervisor has processes in FATAL state: ' . implode(', ', $fatalProcesses));
45
+                return new Response('supervisor', false, 'Supervisor has processes in FATAL state: '.implode(', ', $fatalProcesses));
46 46
             }
47 47
             
48 48
             return new Response('supervisor', true, 'Supervisor is healthy');
49 49
         } catch (\Exception $e) {
50
-            return new Response('supervisor', false, 'Supervisor check failed: ' . $e->getMessage());
50
+            return new Response('supervisor', false, 'Supervisor check failed: '.$e->getMessage());
51 51
         }
52 52
     }
53 53
 }
Please login to merge, or discard this patch.