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 b0b8fae commit 4528e4bCopy full SHA for 4528e4b
app/code/Magento/RemoteStorage/Driver/Adapter/PathUtil.php
@@ -20,13 +20,15 @@ class PathUtil
20
*/
21
public function pathInfo($path)
22
{
23
+ // phpcs:disable Magento2.Functions.DiscouragedFunction
24
$pathInfo = ['path' => $path];
25
$dirname = dirname($path);
26
if ('' !== $dirname) {
27
$pathInfo['dirname'] = $dirname === '.' ? '' : $dirname;
28
}
29
$pathInfo += pathinfo($this->basename($path));
30
$pathInfo['basename'] = $pathInfo['filename'];
31
+ // phpcs:enable Magento2.Functions.DiscouragedFunction
32
return $pathInfo + ['dirname' => ''];
33
34
0 commit comments