Completed
Pull Request — master (#15)
by Akihito
04:37
created
src/Snidel/Log.php 1 patch
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,15 +50,15 @@
 block discarded – undo
50 50
         }
51 51
         $pid = getmypid();
52 52
         switch (true) {
53
-        case $this->ownerPid === $pid:
54
-            $role = 'owner';
55
-            break;
56
-        case $this->masterPid === $pid:
57
-            $role = 'master';
58
-            break;
59
-        default:
60
-            $role = 'worker';
61
-            break;
53
+            case $this->ownerPid === $pid:
54
+                $role = 'owner';
55
+                break;
56
+            case $this->masterPid === $pid:
57
+                $role = 'master';
58
+                break;
59
+            default:
60
+                $role = 'worker';
61
+                break;
62 62
         }
63 63
         fputs(
64 64
             $this->destination,
Please login to merge, or discard this patch.
src/Snidel/Fork/Container.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     /**
55 55
      * @param   int     $ownerPid
56
+     * @param \Ackintosh\Snidel\Log $log
56 57
      */
57 58
     public function __construct($ownerPid, $log, Config $config)
58 59
     {
@@ -66,6 +67,7 @@  discard block
 block discarded – undo
66 67
 
67 68
     /**
68 69
      * @param   \Ackintosh\Snidel\Task
70
+     * @param \Ackintosh\Snidel\Task\Task $task
69 71
      * @return  void
70 72
      * @throws  \RuntimeException
71 73
      */
@@ -91,7 +93,7 @@  discard block
 block discarded – undo
91 93
     }
92 94
 
93 95
     /**
94
-     * @return  \Ackintosh\Snidel\Fork\Fork
96
+     * @return  \Ackintosh\Snidel\Result\Result
95 97
      */
96 98
     private function dequeue()
97 99
     {
@@ -310,6 +312,9 @@  discard block
 block discarded – undo
310 312
         }
311 313
     }
312 314
 
315
+    /**
316
+     * @param string $tag
317
+     */
313 318
     public function getCollection($tag = null)
314 319
     {
315 320
         if ($tag === null) {
Please login to merge, or discard this patch.