Completed
Push — master ( 62cac1...04bcb8 )
by Sébastien
08:40
created
src/PjbServer/Tools/System/Linux/LinuxProcess.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function isRunning(int $pid): bool
40 40
     {
41 41
         $cmd = sprintf('kill -0 %d 2>&1', $pid);
42
-        $this->logger->debug(__METHOD__ . ": Exec command: $cmd");
42
+        $this->logger->debug(__METHOD__.": Exec command: $cmd");
43 43
         exec($cmd, $output, $return_var);
44 44
 
45 45
         return $return_var === 0;
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
             if ($wait) {
58 58
                 $sleep_time = '0.2';
59 59
                 $cmd = sprintf('kill %d; while ps -p %d; do sleep %s;done;', $pid, $pid, $sleep_time);
60
-                $this->logger->debug(__METHOD__ . " Exec command: $cmd");
60
+                $this->logger->debug(__METHOD__." Exec command: $cmd");
61 61
                 exec($cmd, $output, $return_var);
62 62
                 $killed = ($return_var === 0);
63 63
                 if ($killed) {
64
-                    $this->logger->debug(__METHOD__ . " Successfully killed process {$pid}");
64
+                    $this->logger->debug(__METHOD__." Successfully killed process {$pid}");
65 65
                 } else {
66
-                    $this->logger->notice(__METHOD__ . " Cannot kill process {$pid}, $output");
66
+                    $this->logger->notice(__METHOD__." Cannot kill process {$pid}, $output");
67 67
                 }
68 68
             } else {
69 69
                 //@todo
Please login to merge, or discard this patch.