Skip to content

Commit d1e6760

Browse files
committed
Fix CS
1 parent 1b4f86a commit d1e6760

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

bundle/Command/GenerateImageVariationsCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\Console\Input\InputOption;
1818
use Symfony\Component\Console\Output\OutputInterface;
1919
use Symfony\Component\Console\Style\SymfonyStyle;
20+
use Throwable;
2021

2122
use function array_filter;
2223
use function array_keys;
@@ -27,6 +28,7 @@
2728
use function explode;
2829
use function in_array;
2930
use function iterator_to_array;
31+
use function sprintf;
3032
use function trim;
3133

3234
final class GenerateImageVariationsCommand extends Command
@@ -131,8 +133,8 @@ private function generateVariations(Content $content, array $variations, array $
131133
foreach ($variations as $variation) {
132134
try {
133135
$this->variationHandler->getVariation($field, $content->versionInfo, $variation);
134-
} catch (\Throwable $throwable) {
135-
$this->output->writeln("Could not get variation: " . $throwable->getMessage());
136+
} catch (Throwable $throwable) {
137+
$this->style->error(sprintf('Could not get variation: %s', $throwable->getMessage()));
136138
}
137139
}
138140
}

bundle/Controller/CheckRedirect.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
final class CheckRedirect extends Controller
1313
{
14-
public function __construct(
15-
private readonly RedirectHelper $redirectHelper,
16-
) {
14+
public function __construct(private readonly RedirectHelper $redirectHelper)
15+
{
1716
}
1817

1918
/**

bundle/Controller/InfoCollection/ViewModal.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
final class ViewModal extends Controller
1212
{
13-
public function __construct(
14-
private readonly RefererResolver $refererResolver,
15-
) {
13+
public function __construct(private readonly RefererResolver $refererResolver)
14+
{
1615
}
1716

1817
public function __invoke(int $formContentId, ?int $refererLocationId = null): Response

bundle/Controller/Search.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313

1414
final class Search extends Controller
1515
{
16-
public function __construct(
17-
private readonly SuggestionResolver $suggestionResolver,
18-
) {
16+
public function __construct(private readonly SuggestionResolver $suggestionResolver)
17+
{
1918
}
2019

2120
/**

0 commit comments

Comments
 (0)