Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit e4636a4

Browse files
committed
Add missing dots at the end of exception messages
1 parent bcdf6ff commit e4636a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ClassCollectionLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function load($classes, $cacheDir, $name, $autoReload, $adaptive =
6363

6464
// cache the core classes
6565
if (!is_dir($cacheDir) && !@mkdir($cacheDir, 0777, true) && !is_dir($cacheDir)) {
66-
throw new \RuntimeException(sprintf('Class Collection Loader was not able to create directory "%s"', $cacheDir));
66+
throw new \RuntimeException(sprintf('Class Collection Loader was not able to create directory "%s".', $cacheDir));
6767
}
6868
$cacheDir = rtrim(realpath($cacheDir) ?: $cacheDir, '/'.\DIRECTORY_SEPARATOR);
6969
$cache = $cacheDir.'/'.$name.$extension;
@@ -133,7 +133,7 @@ public static function inline($classes, $cache, array $excluded)
133133
// cache the core classes
134134
$cacheDir = \dirname($cache);
135135
if (!is_dir($cacheDir) && !@mkdir($cacheDir, 0777, true) && !is_dir($cacheDir)) {
136-
throw new \RuntimeException(sprintf('Class Collection Loader was not able to create directory "%s"', $cacheDir));
136+
throw new \RuntimeException(sprintf('Class Collection Loader was not able to create directory "%s".', $cacheDir));
137137
}
138138

139139
$spacesRegex = '(?:\s*+(?:(?:\#|//)[^\n]*+\n|/\*(?:(?<!\*/).)++)?+)*+';
@@ -336,7 +336,7 @@ private static function getOrderedClasses(array $classes)
336336
try {
337337
$reflectionClass = new \ReflectionClass($class);
338338
} catch (\ReflectionException $e) {
339-
throw new \InvalidArgumentException(sprintf('Unable to load class "%s"', $class));
339+
throw new \InvalidArgumentException(sprintf('Unable to load class "%s".', $class));
340340
}
341341

342342
$map = array_merge($map, self::getClassHierarchy($reflectionClass));

0 commit comments

Comments
 (0)