Skip to content

Commit 2f04b78

Browse files
committed
Add missing dots at the end of exception messages
1 parent ec8ae13 commit 2f04b78

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Controller/ControllerResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getController(Request $request)
8888
try {
8989
$callable = $this->createController($controller);
9090
} catch (\InvalidArgumentException $e) {
91-
throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable. %s', $request->getPathInfo(), $e->getMessage()), 0, $e);
91+
throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable. %s.', $request->getPathInfo(), $e->getMessage()), 0, $e);
9292
}
9393

9494
return $callable;

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
217217
$dumper = new HtmlDumper($data, $this->charset);
218218
$dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]);
219219
} else {
220-
throw new \InvalidArgumentException(sprintf('Invalid dump format: %s', $format));
220+
throw new \InvalidArgumentException(sprintf('Invalid dump format: %s.', $format));
221221
}
222222
$dumps = [];
223223

Fragment/HIncludeFragmentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct($templating = null, UriSigner $signer = null, $globa
5757
public function setTemplating($templating)
5858
{
5959
if (null !== $templating && !$templating instanceof EngineInterface && !$templating instanceof Environment) {
60-
throw new \InvalidArgumentException('The hinclude rendering strategy needs an instance of Twig\Environment or Symfony\Component\Templating\EngineInterface');
60+
throw new \InvalidArgumentException('The hinclude rendering strategy needs an instance of Twig\Environment or Symfony\Component\Templating\EngineInterface.');
6161
}
6262

6363
$this->templating = $templating;

Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ protected function initializeBundles()
493493
foreach ($this->registerBundles() as $bundle) {
494494
$name = $bundle->getName();
495495
if (isset($this->bundles[$name])) {
496-
throw new \LogicException(sprintf('Trying to register two bundles with the same name "%s"', $name));
496+
throw new \LogicException(sprintf('Trying to register two bundles with the same name "%s".', $name));
497497
}
498498
$this->bundles[$name] = $bundle;
499499

@@ -762,10 +762,10 @@ protected function buildContainer()
762762
foreach (['cache' => $this->warmupDir ?: $this->getCacheDir(), 'logs' => $this->getLogDir()] as $name => $dir) {
763763
if (!is_dir($dir)) {
764764
if (false === @mkdir($dir, 0777, true) && !is_dir($dir)) {
765-
throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, $dir));
765+
throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n.", $name, $dir));
766766
}
767767
} elseif (!is_writable($dir)) {
768-
throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));
768+
throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n.", $name, $dir));
769769
}
770770
}
771771

0 commit comments

Comments
 (0)