Completed
Push — master ( c084ee...b33cec )
by Akihito
14s queued 11s
created
src/Snidel.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $this->coordinator = new Coordinator($this->config, $this->log);
40 40
         $this->coordinator->forkMaster();
41 41
         $this->registerSignalHandler($this->coordinator, $this->log);
42
-        $this->log->info('parent pid: ' . $this->config->get('ownerPid'));
42
+        $this->log->info('parent pid: '.$this->config->get('ownerPid'));
43 43
     }
44 44
 
45 45
     /**
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
         try {
53 53
             $this->coordinator->enqueue(new Task($callable, $args, $tag));
54 54
         } catch (RuntimeException $e) {
55
-            $this->log->error('failed to enqueue the task: ' . $e->getMessage());
55
+            $this->log->error('failed to enqueue the task: '.$e->getMessage());
56 56
             throw $e;
57 57
         }
58 58
 
59
-        $this->log->info('queued task #' . $this->coordinator->queuedCount());
59
+        $this->log->info('queued task #'.$this->coordinator->queuedCount());
60 60
     }
61 61
 
62 62
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function results(): \Generator
74 74
     {
75
-        foreach($this->coordinator->results() as $r) {
75
+        foreach ($this->coordinator->results() as $r) {
76 76
             pcntl_signal_dispatch();
77 77
             yield $r;
78 78
         }
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
         foreach ($this->signals as $sig) {
99 99
             $pcntl->signal(
100 100
                 $sig,
101
-                function ($sig) use ($log, $coordinator) {
102
-                    $log->info('received signal. signo: ' . $sig);
101
+                function($sig) use ($log, $coordinator) {
102
+                    $log->info('received signal. signo: '.$sig);
103 103
                     $log->info('--> sending a signal " to children.');
104 104
                     $coordinator->sendSignalToMaster($sig);
105 105
                     $log->info('<-- signal handling has been completed successfully.');
Please login to merge, or discard this patch.