@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $track = self::TRACK_SUCCESS; |
| 83 | 83 | foreach ($this->stepsQueue as $step) { |
| 84 | 84 | /** |
| 85 | - * @var $step AbstractStep |
|
| 85 | + * @var $step AbstractStep |
|
| 86 | 86 | */ |
| 87 | 87 | $track = $this->performStep($step, $params, $track); |
| 88 | 88 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $stepResult = $result; |
| 70 | 70 | |
| 71 | 71 | if (is_a($result, Result::class)) { |
| 72 | - $stepResult = [ |
|
| 72 | + $stepResult = [ |
|
| 73 | 73 | 'params' => $result->params(), |
| 74 | 74 | 'type' => ($result->isSuccess()) ? RESPONSE_TYPE_OK : RESPONSE_TYPE_ERROR |
| 75 | 75 | ]; |
@@ -10,7 +10,7 @@ discard block |
||
| 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($params, 'Early fail'); |
| 16 | 16 | return ok($params, ['newParam' => 'newValue']); |
@@ -38,7 +38,7 @@ discard block |
||
| 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($params, 'Nested Railway failed!'); |
| 43 | 43 | return ok($params, ['nestedRwParam' => 'nestedRwValue']); |
| 44 | 44 | }) |