CodeExplorer substringPath example
return $path;
} /**
* {@inheritdoc}
*/
public function encode($path) { if (!
$path ||
$this->
isEncoded($path)) { return $this->
substringPath($path);
} $path =
$this->
normalize($path);
$path =
ltrim($path, '/'
);
$pathElements =
explode('/',
$path);
$pathInfo =
pathinfo($path);
$md5hash =
md5($path);
if (empty($pathInfo['extension'
])) { return '';
}