Skip to content

Commit 3cbca8f

Browse files
committed
Fix CS
1 parent a647d42 commit 3cbca8f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9191

9292
if (null === $path = $input->getArgument('path')) {
9393
$io->title(
94-
sprintf('Current configuration for %s', ($name === $extensionAlias ? sprintf('extension with alias "%s"', $extensionAlias) : sprintf('"%s"', $name)))
94+
sprintf('Current configuration for %s', $name === $extensionAlias ? sprintf('extension with alias "%s"', $extensionAlias) : sprintf('"%s"', $name))
9595
);
9696

9797
$io->writeln(Yaml::dump([$extensionAlias => $config], 10));

Console/Descriptor/TextDescriptor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ protected function describeRoute(Route $route, array $options = [])
8787
['Route Name', $options['name'] ?? ''],
8888
['Path', $route->getPath()],
8989
['Path Regex', $route->compile()->getRegex()],
90-
['Host', ('' !== $route->getHost() ? $route->getHost() : 'ANY')],
91-
['Host Regex', ('' !== $route->getHost() ? $route->compile()->getHostRegex() : '')],
92-
['Scheme', ($route->getSchemes() ? implode('|', $route->getSchemes()) : 'ANY')],
93-
['Method', ($route->getMethods() ? implode('|', $route->getMethods()) : 'ANY')],
94-
['Requirements', ($route->getRequirements() ? $this->formatRouterConfig($route->getRequirements()) : 'NO CUSTOM')],
90+
['Host', '' !== $route->getHost() ? $route->getHost() : 'ANY'],
91+
['Host Regex', '' !== $route->getHost() ? $route->compile()->getHostRegex() : ''],
92+
['Scheme', $route->getSchemes() ? implode('|', $route->getSchemes()) : 'ANY'],
93+
['Method', $route->getMethods() ? implode('|', $route->getMethods()) : 'ANY'],
94+
['Requirements', $route->getRequirements() ? $this->formatRouterConfig($route->getRequirements()) : 'NO CUSTOM'],
9595
['Class', \get_class($route)],
9696
['Defaults', $this->formatRouterConfig($route->getDefaults())],
9797
['Options', $this->formatRouterConfig($route->getOptions())],

Tests/Functional/ContainerDebugCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testDescribeEnvVars()
116116
* UNKNOWN
117117

118118
TXT
119-
, $tester->getDisplay(true));
119+
, $tester->getDisplay(true));
120120

121121
putenv('REAL');
122122
}

Tests/Translation/TranslatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function testInvalidOptions()
176176
$this->expectExceptionMessage('The Translator does not support the following options: \'foo\'');
177177
$container = $this->createMock(ContainerInterface::class);
178178

179-
(new Translator($container, new MessageFormatter(), 'en', [], ['foo' => 'bar']));
179+
new Translator($container, new MessageFormatter(), 'en', [], ['foo' => 'bar']);
180180
}
181181

182182
/** @dataProvider getDebugModeAndCacheDirCombinations */

0 commit comments

Comments
 (0)