Completed
Pull Request — master (#21)
by Akihito
04:50
created
src/Snidel.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
         foreach ($this->signals as $sig) {
45 45
             $this->pcntl->signal(
46 46
                 $sig,
47
-                function ($sig)  {
48
-                    $this->log->info('received signal. signo: ' . $sig);
47
+                function($sig) {
48
+                    $this->log->info('received signal. signo: '.$sig);
49 49
                     $this->log->info('--> sending a signal " to children.');
50 50
                     $this->container->sendSignalToMaster($sig);
51 51
                     $this->log->info('<-- signal handling has been completed successfully.');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             );
56 56
         }
57 57
 
58
-        $this->log->info('parent pid: ' . $this->config->get('ownerPid'));
58
+        $this->log->info('parent pid: '.$this->config->get('ownerPid'));
59 59
     }
60 60
 
61 61
     /**
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
         try {
73 73
             $this->container->enqueue(new Task($callable, $args, $tag));
74 74
         } catch (\RuntimeException $e) {
75
-            $this->log->error('failed to enqueue the task: ' . $e->getMessage());
75
+            $this->log->error('failed to enqueue the task: '.$e->getMessage());
76 76
             throw $e;
77 77
         }
78 78
 
79
-        $this->log->info('queued task #' . $this->container->queuedCount());
79
+        $this->log->info('queued task #'.$this->container->queuedCount());
80 80
     }
81 81
 
82 82
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function results()
98 98
     {
99
-        foreach($this->container->results() as $r) {
99
+        foreach ($this->container->results() as $r) {
100 100
             yield $r;
101 101
         }
102 102
     }
Please login to merge, or discard this patch.