Completed
Push — master ( 412b2f...33388a )
by Sébastien
05:32
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($pid)
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
         $running = ($return_var === 0);
45 45
 
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
             if ($wait) {
64 64
                 $sleep_time = '0.2';
65 65
                 $cmd = sprintf('kill %d; while ps -p %d; do sleep %s;done;', $pid, $pid, $sleep_time);
66
-                $this->logger->debug(__METHOD__ . " Exec command: $cmd");
66
+                $this->logger->debug(__METHOD__." Exec command: $cmd");
67 67
                 exec($cmd, $output, $return_var);
68 68
                 $killed = ($return_var === 0);
69 69
                 if ($killed) {
70
-                    $this->logger->debug(__METHOD__ . " Successfully killed process {$pid}");
70
+                    $this->logger->debug(__METHOD__." Successfully killed process {$pid}");
71 71
                 } else {
72
-                    $this->logger->notice(__METHOD__ . " Cannot kill process {$pid}, $output");
72
+                    $this->logger->notice(__METHOD__." Cannot kill process {$pid}, $output");
73 73
                 }
74 74
             } else {
75 75
                 //@todo
Please login to merge, or discard this patch.