protected function getArgumentPath($withName = false)
    {
        $name = $this->argumentName();

        if (str_contains($name, '.')) {
            $name = str_replace('.', '/', $name);
        }

        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '/', $name);
        }

        // ucfirst char, for correct namespace
        $name = implode('/', array_map('ucfirst', explode('/', $name)));

        // if we need to keep lowercase
        if ($this->settingsDirectoryFormat() === 'strtolower') {
            $name = implode('/', array_map('strtolower', explode('/', $name)));
        }

        // if we want the path with name
        if ($withName) {
            return $name . '/';
        }

        if (str_contains($name, '/')) {
            return substr($name, 0, strripos($name, '/') + 1);
        }

        return '';
    }
protected function getArgumentPath($withName = false)
    {
        $name = $this->argumentName();

        if (str_contains($name, '.')) {
            $name = str_replace('.', '/', $name);
        }

        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '/', $name);
        }

        // ucfirst char, for correct namespace
        $name = implode('/', array_map('ucfirst', explode('/', $name)));

        // if we need to keep lowercase
        if ($this->settingsDirectoryFormat() === 'strtolower') {
            $name = implode('/', array_map('strtolower', explode('/', $name)));
        }

        // if we want the path with name
        if ($withName) {
            return $name . '/';
        }

        if (str_contains($name, '/')) {
            return substr($name, 0, strripos($name, '/') + 1);
        }

        return '';
    }
protected function getArgumentPath ( $ withName = false ) { $ name = $ this -> argumentName ( ) ; if ( str_contains ( $ name , '.' ) ) { $ name = str_replace ( '.' , '/' , $ name ) ; } if ( str_contains ( $ name , '\\' ) ) { $ name = str_replace ( '\\' , '/' , $ name ) ; } // ucfirst char, for correct namespace $ name = implode ( '/' , array_map ( 'ucfirst' , explode ( '/' , $ name ) ) ) ; // if we need to keep lowercase if ( $ this -> settingsDirectoryFormat ( ) === 'strtolower' ) { $ name = implode ( '/' , array_map ( 'strtolower' , explode ( '/' , $ name ) ) ) ; } // if we want the path with name if ( $ withName ) { return $ name . '/' ; } if ( str_contains ( $ name , '/' ) ) { return substr ( $ name , 0 , strripos ( $ name , '/' ) + 1 ) ; } return '' ; }
Return the path of the file

@param bool $withName
@return array|mixed|string
Return the path of the file