public function load($file, $type = null)
{
$path = $this->locator->locate($file);
- $this->setCurrentDir(dirname($path));
+ $this->setCurrentDir(\dirname($path));
// the closure forbids access to the private scope in the included file
$loader = $this;
*/
public function supports($resource, $type = null)
{
- return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION) && (!$type || 'php' === $type);
+ return \is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION) && (!$type || 'php' === $type);
}
}