Skip to content

Commit 7224570

Browse files
committed
Add missing dots at the end of exception messages
1 parent 130cddb commit 7224570

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Command/AbstractConfigCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ protected function findExtension($name)
112112
public function validateConfiguration(ExtensionInterface $extension, $configuration)
113113
{
114114
if (!$configuration) {
115-
throw new \LogicException(sprintf('The extension with alias "%s" does not have its getConfiguration() method setup', $extension->getAlias()));
115+
throw new \LogicException(sprintf('The extension with alias "%s" does not have its getConfiguration() method setup.', $extension->getAlias()));
116116
}
117117

118118
if (!$configuration instanceof ConfigurationInterface) {
119-
throw new \LogicException(sprintf('Configuration class "%s" should implement ConfigurationInterface in order to be dumpable', \get_class($configuration)));
119+
throw new \LogicException(sprintf('Configuration class "%s" should implement ConfigurationInterface in order to be dumpable.', \get_class($configuration)));
120120
}
121121
}
122122

Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
104104
$fs->remove($oldCacheDir);
105105

106106
if (!is_writable($realCacheDir)) {
107-
throw new RuntimeException(sprintf('Unable to write in the "%s" directory', $realCacheDir));
107+
throw new RuntimeException(sprintf('Unable to write in the "%s" directory.', $realCacheDir));
108108
}
109109

110110
$io->comment(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));

Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function getConfigForPath(array $config, $path, $alias)
140140

141141
foreach ($steps as $step) {
142142
if (!\array_key_exists($step, $config)) {
143-
throw new LogicException(sprintf('Unable to find configuration for "%s.%s"', $alias, $path));
143+
throw new LogicException(sprintf('Unable to find configuration for "%s.%s".', $alias, $path));
144144
}
145145

146146
$config = $config[$step];

DependencyInjection/Compiler/ProfilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function process(ContainerBuilder $container)
3939

4040
if (isset($attributes[0]['template'])) {
4141
if (!isset($attributes[0]['id'])) {
42-
throw new InvalidArgumentException(sprintf('Data collector service "%s" must have an id attribute in order to specify a template', $id));
42+
throw new InvalidArgumentException(sprintf('Data collector service "%s" must have an id attribute in order to specify a template.', $id));
4343
}
4444
$template = [$attributes[0]['id'], $attributes[0]['template']];
4545
}

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
12011201
if ($container->fileExists($dir)) {
12021202
$dirs[] = $dir;
12031203
} else {
1204-
throw new \UnexpectedValueException(sprintf('%s defined in translator.paths does not exist or is not a directory', $dir));
1204+
throw new \UnexpectedValueException(sprintf('%s defined in translator.paths does not exist or is not a directory.', $dir));
12051205
}
12061206
}
12071207

@@ -1629,7 +1629,7 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
16291629
$storeDefinition = new Reference($storeDefinitionId);
16301630
break;
16311631
default:
1632-
throw new InvalidArgumentException(sprintf('Lock store DSN "%s" is not valid in resource "%s"', $storeDsn, $resourceName));
1632+
throw new InvalidArgumentException(sprintf('Lock store DSN "%s" is not valid in resource "%s".', $storeDsn, $resourceName));
16331633
}
16341634

16351635
$storeDefinitions[] = $storeDefinition;

Templating/Helper/StopwatchHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function __call($method, $arguments = [])
4343
return \call_user_func_array([$this->stopwatch, $method], $arguments);
4444
}
4545

46-
throw new \BadMethodCallException(sprintf('Method "%s" of Stopwatch does not exist', $method));
46+
throw new \BadMethodCallException(sprintf('Method "%s" of Stopwatch does not exist.', $method));
4747
}
4848
}

Test/WebTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected static function createClient(array $options = [], array $server = [])
3939
if (class_exists(Client::class)) {
4040
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
4141
}
42-
throw new \LogicException('You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit"');
42+
throw new \LogicException('You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit".');
4343
}
4444

4545
$client->setServerParameters($server);

0 commit comments

Comments
 (0)