We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfcd98d commit d79c2bdCopy full SHA for d79c2bd
tests/Fixture/FakeComposerLocator.php
@@ -13,10 +13,11 @@ class FakeComposerLocator extends \ComposerLocator
13
public static function getPath($name)
14
{
15
$name = strtolower($name);
16
- if (! isset(self::$paths[$name])) {
+ if (!isset(self::$paths[$name])) {
17
throw new RuntimeException("Composer package not found: {$name}");
18
}
19
- return self::getRootPath() . self::$paths[$name];
+
20
+ return self::getRootPath().self::$paths[$name];
21
22
23
public static function getRootPath()
@@ -39,7 +40,7 @@ public static function getPaths()
39
40
$paths = [];
41
42
foreach (self::$paths as $name => $path) {
- $paths[$name] = self::getRootPath() . $path;
43
+ $paths[$name] = self::getRootPath().$path;
44
45
46
return $paths;
0 commit comments