Completed
Push — master ( 70ed4c...f56a68 )
by Ievgen
05:07 queued 03:10
created
src/Railway.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         return $this->rawStep(new Wrap($callable, $signature), $opt);
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $stepName
77
+     */
75 78
     public function nextStepSignature(callable $callable, $stepName, $opt)
76 79
     {
77 80
         is_callable($callable, false, $functionName);
@@ -102,7 +105,8 @@  discard block
 block discarded – undo
102 105
 
103 106
     /**
104 107
      * @param $params
105
-     * @param $step
108
+     * @param AbstractStep $step
109
+     * @param string $track
106 110
      * @return string
107 111
      * @throws \Exception
108 112
      */
Please login to merge, or discard this patch.
examples/UpdateOperation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public function __invoke($params)
14 14
     {
15 15
         $result = (new Railway)
16
-            ->step(function ($params) {
16
+            ->step(function($params) {
17 17
                 echo "Hey {$params['name']}. Say hello to anonymous function!";
18 18
                 //return error('Early fail');
19 19
                 return ok(['newParam' => 'newValue']);
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
         return $result;
32 32
     }
33 33
 
34
-    public function nestedRailway($params){
34
+    public function nestedRailway($params) {
35 35
         return (new Railway)
36
-            ->step(function ($params){
36
+            ->step(function($params) {
37 37
                 //return error('Nested Railway failed!');
38 38
                 return ok(['nestedRwParam' => 'nestedRwValue']);
39 39
             })
Please login to merge, or discard this patch.