Skip to content

Commit 41e7419

Browse files
committed
[rector] Rector fixes
1 parent 4cff454 commit 41e7419

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/Cloud/Workflow.php

+7-9
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ function (string $code, array $config, int $order) {
4949
$name,
5050
new JobCode($code),
5151
new StepList(
52-
...array_map(function (string $code, array $step, int $order) {
53-
return new Step(
54-
$step['name'] ?? sprintf('step%d', $order),
55-
new StepCode($code ?? sprintf('step%d', $order)),
56-
$step,
57-
new ProbeList(),
58-
$order
59-
);
60-
},
52+
...array_map(fn(string $code, array $step, int $order) => new Step(
53+
$step['name'] ?? sprintf('step%d', $order),
54+
new StepCode($code ?? sprintf('step%d', $order)),
55+
$step,
56+
new ProbeList(),
57+
$order
58+
),
6159
array_keys($config['pipeline']['steps']),
6260
$config['pipeline']['steps'],
6361
range(0, (is_countable($config['pipeline']['steps']) ? \count($config['pipeline']['steps']) : 0) - 1)

0 commit comments

Comments
 (0)