Completed
Push — master ( f40c1b...a796d5 )
by Ievgen
02:13
created
src/Railway.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -89,6 +89,7 @@
 block discarded – undo
89 89
 
90 90
     /**
91 91
      * @throws \Exception
92
+     * @param AbstractStep $step
92 93
      */
93 94
     protected function performStep($step, &$params, $track)
94 95
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                 } elseif (isError($type)) {
106 106
                     $nextTrack = self::TRACK_FAILURE;
107 107
                     $appendError = $stepResult['appendError'] ?? [];
108
-                    if($appendError) {
108
+                    if ($appendError) {
109 109
                         $params['__errors'] = $params['__errors'] + $appendError;
110 110
                     }
111 111
                 }
Please login to merge, or discard this patch.
examples/UpdateOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     public function railway() : Railway
11 11
     {
12 12
         return (new Railway)
13
-            ->step(function ($params) {
13
+            ->step(function($params) {
14 14
                 echo "Hey {$params['name']}. Say hello to anonymous function!";
15 15
                 //return error('Early fail');
16 16
                 return ok(['newParam' => 'newValue']);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function nestedRailway($params)
39 39
     {
40 40
         return (new Railway)
41
-            ->step(function ($params) {
41
+            ->step(function($params) {
42 42
                 return error('Nested Railway failed!');
43 43
                 return ok(['nestedRwParam' => 'nestedRwValue']);
44 44
             })
Please login to merge, or discard this patch.