Skip to content

Commit 46eb3f6

Browse files
committed
Add missing dots at the end of exception messages
1 parent 1ae3fb8 commit 46eb3f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Loader/CacheLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function load(TemplateReferenceInterface $template)
6666
$content = $storage->getContent();
6767

6868
if (!is_dir($dir) && !@mkdir($dir, 0777, true) && !is_dir($dir)) {
69-
throw new \RuntimeException(sprintf('Cache Loader was not able to create directory "%s"', $dir));
69+
throw new \RuntimeException(sprintf('Cache Loader was not able to create directory "%s".', $dir));
7070
}
7171

7272
file_put_contents($path, $content);

PhpEngine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ protected function evaluate(Storage $template, array $parameters = [])
134134
unset($template, $parameters);
135135

136136
if (isset($this->evalParameters['this'])) {
137-
throw new \InvalidArgumentException('Invalid parameter (this)');
137+
throw new \InvalidArgumentException('Invalid parameter (this).');
138138
}
139139
if (isset($this->evalParameters['view'])) {
140-
throw new \InvalidArgumentException('Invalid parameter (view)');
140+
throw new \InvalidArgumentException('Invalid parameter (view).');
141141
}
142142

143143
// the view variable is exposed to the require file below

0 commit comments

Comments
 (0)