protected function detectNamespace()
    {
        if (strpos($this->alias, '\\')) {
            $nsParts = explode('\\', $this->alias);
            $this->short = array_pop($nsParts);
            $this->namespace = implode('\\', $nsParts);
        } else {
            $this->short = $this->alias;
        }
    }
protected function detectNamespace()
    {
        if (strpos($this->alias, '\\')) {
            $nsParts = explode('\\', $this->alias);
            $this->short = array_pop($nsParts);
            $this->namespace = implode('\\', $nsParts);
        } else {
            $this->short = $this->alias;
        }
    }
protected function detectNamespace ( ) { if ( strpos ( $ this -> alias , '\\' ) ) { $ nsParts = explode ( '\\' , $ this -> alias ) ; $ this -> short = array_pop ( $ nsParts ) ; $ this -> namespace = implode ( '\\' , $ nsParts ) ; } else { $ this -> short = $ this -> alias ; } }
Detect the namespace
Detect the namespace