Skip to content

Commit ee4c125

Browse files
author
mauriau
committed
style(graphql): remove backslash on sprintf
1 parent 8862596 commit ee4c125

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/DependencyInjection/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getConfigTreeBuilder(): TreeBuilder
8282
->defaultValue('0.0.0')
8383
->end()
8484
->booleanNode('show_webby')->defaultTrue()->info('If true, show Webby on the documentation page')->end()
85-
->booleanNode('use_symfony_listeners')->defaultFalse()->info(\sprintf('Uses Symfony event listeners instead of the %s.', MainController::class))->end()
85+
->booleanNode('use_symfony_listeners')->defaultFalse()->info(sprintf('Uses Symfony event listeners instead of the %s.', MainController::class))->end()
8686
->scalarNode('name_converter')->defaultNull()->info('Specify a name converter to use.')->end()
8787
->scalarNode('asset_package')->defaultNull()->info('Specify an asset package name to use.')->end()
8888
->scalarNode('path_segment_name_generator')->defaultValue('api_platform.metadata.path_segment_name_generator.underscore')->info('Specify a path name generator to use.')->end()
@@ -311,7 +311,7 @@ private function addSwaggerSection(ArrayNodeDefinition $rootNode): void
311311
->end()
312312
->validate()
313313
->ifTrue(static fn ($v): bool => $v !== array_intersect($v, $supportedVersions))
314-
->thenInvalid(\sprintf('Only the versions %s are supported. Got %s.', implode(' and ', $supportedVersions), '%s'))
314+
->thenInvalid(sprintf('Only the versions %s are supported. Got %s.', implode(' and ', $supportedVersions), '%s'))
315315
->end()
316316
->prototype('scalar')->end()
317317
->end()
@@ -545,7 +545,7 @@ private function addExceptionToStatusSection(ArrayNodeDefinition $rootNode): voi
545545
->then(static function (array $exceptionToStatus): array {
546546
foreach ($exceptionToStatus as $httpStatusCode) {
547547
if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
548-
throw new InvalidConfigurationException(\sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
548+
throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
549549
}
550550
}
551551

0 commit comments

Comments
 (0)