Skip to content

Commit c84c772

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Fix CS
2 parents f858890 + 3cbca8f commit c84c772

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
@@ -100,7 +100,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
100100

101101
if (null === $path = $input->getArgument('path')) {
102102
$io->title(
103-
sprintf('Current configuration for %s', ($name === $extensionAlias ? sprintf('extension with alias "%s"', $extensionAlias) : sprintf('"%s"', $name)))
103+
sprintf('Current configuration for %s', $name === $extensionAlias ? sprintf('extension with alias "%s"', $extensionAlias) : sprintf('"%s"', $name))
104104
);
105105

106106
$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
@@ -93,11 +93,11 @@ protected function describeRoute(Route $route, array $options = [])
9393
['Route Name', $options['name'] ?? ''],
9494
['Path', $route->getPath()],
9595
['Path Regex', $route->compile()->getRegex()],
96-
['Host', ('' !== $route->getHost() ? $route->getHost() : 'ANY')],
97-
['Host Regex', ('' !== $route->getHost() ? $route->compile()->getHostRegex() : '')],
98-
['Scheme', ($route->getSchemes() ? implode('|', $route->getSchemes()) : 'ANY')],
99-
['Method', ($route->getMethods() ? implode('|', $route->getMethods()) : 'ANY')],
100-
['Requirements', ($route->getRequirements() ? $this->formatRouterConfig($route->getRequirements()) : 'NO CUSTOM')],
96+
['Host', '' !== $route->getHost() ? $route->getHost() : 'ANY'],
97+
['Host Regex', '' !== $route->getHost() ? $route->compile()->getHostRegex() : ''],
98+
['Scheme', $route->getSchemes() ? implode('|', $route->getSchemes()) : 'ANY'],
99+
['Method', $route->getMethods() ? implode('|', $route->getMethods()) : 'ANY'],
100+
['Requirements', $route->getRequirements() ? $this->formatRouterConfig($route->getRequirements()) : 'NO CUSTOM'],
101101
['Class', \get_class($route)],
102102
['Defaults', $this->formatRouterConfig($defaults)],
103103
['Options', $this->formatRouterConfig($route->getOptions())],

Tests/Functional/ContainerDebugCommandTest.php

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

119119
TXT
120-
, $tester->getDisplay(true));
120+
, $tester->getDisplay(true));
121121

122122
putenv('REAL');
123123
}

Tests/Translation/TranslatorTest.php

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

141-
(new Translator($container, new MessageFormatter(), 'en', [], ['foo' => 'bar']));
141+
new Translator($container, new MessageFormatter(), 'en', [], ['foo' => 'bar']);
142142
}
143143

144144
/** @dataProvider getDebugModeAndCacheDirCombinations */

0 commit comments

Comments
 (0)