original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: Detect the namespace
docstring_tokens: Detect the namespace