Skip to content

Commit ce8037c

Browse files
committed
Reudce Path::system usage when a function call has no benefit
1 parent 162211d commit ce8037c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Dispatch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ public function generateHash($content, int $length = null)
103103

104104
public function getResourcesPath()
105105
{
106-
return Path::system($this->_projectRoot, self::RESOURCES_DIR);
106+
return $this->_projectRoot . DIRECTORY_SEPARATOR . self::RESOURCES_DIR;
107107
}
108108

109109
public function getPublicPath()
110110
{
111-
return Path::system($this->_projectRoot, self::PUBLIC_DIR);
111+
return $this->_projectRoot . DIRECTORY_SEPARATOR . self::PUBLIC_DIR;
112112
}
113113

114114
public function getVendorPath($vendor, $package)
@@ -263,7 +263,7 @@ public function componentClassResourcePath($class)
263263
{
264264
throw new RuntimeException("Unable to load class");
265265
}
266-
return Path::system(dirname(realpath($file)), '_resources');
266+
return dirname(realpath($file)) . DIRECTORY_SEPARATOR . '_resources';
267267
}
268268
// @codeCoverageIgnoreStart
269269
throw new RuntimeException("No Class Loader Defined");

0 commit comments

Comments
 (0)