protected function getRootNameSpace()
    {
        if (!$namespace = $this->option('namespace')) {
            list($vendor, $name) = explode('/', $this->package);

            $default = str_replace(['-', '-'], '', Str::title($vendor).'\\'.Str::title($name));

            $namespace = $this->ask('Root namespace', $default);
        }

        return $namespace;
    }
protected function getRootNameSpace()
    {
        if (!$namespace = $this->option('namespace')) {
            list($vendor, $name) = explode('/', $this->package);

            $default = str_replace(['-', '-'], '', Str::title($vendor).'\\'.Str::title($name));

            $namespace = $this->ask('Root namespace', $default);
        }

        return $namespace;
    }
protected function getRootNameSpace ( ) { if ( ! $ namespace = $ this -> option ( 'namespace' ) ) { list ( $ vendor , $ name ) = explode ( '/' , $ this -> package ) ; $ default = str_replace ( [ '-' , '-' ] , '' , Str :: title ( $ vendor ) . '\\' . Str :: title ( $ name ) ) ; $ namespace = $ this -> ask ( 'Root namespace' , $ default ) ; } return $ namespace ; }
Get root namespace for this package.

@return array|null|string
Get root namespace for this package .