@@ -63,7 +63,7 @@ public static function load($classes, $cacheDir, $name, $autoReload, $adaptive =
63
63
64
64
// cache the core classes
65
65
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 ));
67
67
}
68
68
$ cacheDir = rtrim (realpath ($ cacheDir ) ?: $ cacheDir , '/ ' .\DIRECTORY_SEPARATOR );
69
69
$ cache = $ cacheDir .'/ ' .$ name .$ extension ;
@@ -133,7 +133,7 @@ public static function inline($classes, $cache, array $excluded)
133
133
// cache the core classes
134
134
$ cacheDir = \dirname ($ cache );
135
135
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 ));
137
137
}
138
138
139
139
$ spacesRegex = '(?:\s*+(?:(?:\#|//)[^\n]*+\n|/\*(?:(?<!\*/).)++)?+)*+ ' ;
@@ -336,7 +336,7 @@ private static function getOrderedClasses(array $classes)
336
336
try {
337
337
$ reflectionClass = new \ReflectionClass ($ class );
338
338
} 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 ));
340
340
}
341
341
342
342
$ map = array_merge ($ map , self ::getClassHierarchy ($ reflectionClass ));
0 commit comments