Skip to content

Commit

Permalink
Reudce Path::system usage when a function call has no benefit
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Apr 18, 2019
1 parent 162211d commit ce8037c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ public function generateHash($content, int $length = null)

public function getResourcesPath()
{
return Path::system($this->_projectRoot, self::RESOURCES_DIR);
return $this->_projectRoot . DIRECTORY_SEPARATOR . self::RESOURCES_DIR;
}

public function getPublicPath()
{
return Path::system($this->_projectRoot, self::PUBLIC_DIR);
return $this->_projectRoot . DIRECTORY_SEPARATOR . self::PUBLIC_DIR;
}

public function getVendorPath($vendor, $package)
Expand Down Expand Up @@ -263,7 +263,7 @@ public function componentClassResourcePath($class)
{
throw new RuntimeException("Unable to load class");
}
return Path::system(dirname(realpath($file)), '_resources');
return dirname(realpath($file)) . DIRECTORY_SEPARATOR . '_resources';
}
// @codeCoverageIgnoreStart
throw new RuntimeException("No Class Loader Defined");
Expand Down

0 comments on commit ce8037c

Please sign in to comment.