source/Scaffolder/Configs/ScaffolderConfig.php
private function parseName(string $name): array
    {
        $name = str_replace('/', '\\', $name);

        if (strpos($name, '\\') !== false) {
            $names = explode('\\', $name);
            $class = array_pop($names);

            return [join('\\', $names), $class];
        }

        //No user namespace
        return ['', $name];
    }
private function parseName(string $name): array
    {
        $name = str_replace('/', '\\', $name);

        if (strpos($name, '\\') !== false) {
            $names = explode('\\', $name);
            $class = array_pop($names);

            return [join('\\', $names), $class];
        }

        //No user namespace
        return ['', $name];
    }
private function parseName ( string $ name ) : array { $ name = str_replace ( '/' , '\\' , $ name ) ; if ( strpos ( $ name , '\\' ) !== false ) { $ names = explode ( '\\' , $ name ) ; $ class = array_pop ( $ names ) ; return [ join ( '\\' , $ names ) , $ class ] ; } //No user namespace return [ '' , $ name ] ; }
Split user name into namespace and class name.

@param string $name

@return array [namespace, name]
Split user name into namespace and class name .