Skip to content

Commit 4da2b0c

Browse files
committed
Ran php-cs-fixer
1 parent 5fba5a9 commit 4da2b0c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/StateOutput/Action.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\State\StateOutput;
46

@@ -15,8 +17,7 @@ public function __construct(
1517
private readonly ConsoleOutput $output,
1618
string $index,
1719
string $label,
18-
)
19-
{
20+
) {
2021
$this->section = $this->output->section();
2122
$this->section->writeln('');
2223
$this->section->writeln(sprintf('<fg=green> % 2s. %-50s</>', $index, $label));
@@ -32,10 +33,11 @@ public function addMetric(string $label, callable $callback): self
3233
public function update(): void
3334
{
3435
$this->section
35-
->writeln(' ' . implode(', ', array_map(
36-
fn(string $label, callable $callback) => sprintf('%s <fg=cyan>%d</>', $label, ($callback)()),
36+
->writeln(' '.implode(', ', array_map(
37+
fn (string $label, callable $callback) => sprintf('%s <fg=cyan>%d</>', $label, ($callback)()),
3738
array_keys($this->metrics),
3839
array_values($this->metrics),
39-
)));
40+
)))
41+
;
4042
}
4143
}

0 commit comments

Comments
 (0)