@@ -6,10 +6,10 @@ |
||
6 | 6 | use function einfach\operation\response\isValidResponse; |
7 | 7 | use const einfach\operation\response\RESPONSE_TYPE_ERROR; |
8 | 8 | use const einfach\operation\response\RESPONSE_TYPE_OK; |
9 | -use einfach\operation\step\Step; |
|
10 | -use einfach\operation\step\Failure; |
|
11 | 9 | use einfach\operation\step\AbstractStep; |
12 | 10 | use einfach\operation\step\Always; |
11 | +use einfach\operation\step\Failure; |
|
12 | +use einfach\operation\step\Step; |
|
13 | 13 | use einfach\operation\step\TryCatch; |
14 | 14 | |
15 | 15 | class Railway |
@@ -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 | ]; |