original_string: protected function detectExtendsNamespace()
      {
          if (strpos($this->extends, '\\') !== false) {
              $nsParts = explode('\\', $this->extends);
              $this->extendsClass = array_pop($nsParts);
              $this->extendsNamespace = implode('\\', $nsParts);
          }
      }
code: protected function detectExtendsNamespace()
      {
          if (strpos($this->extends, '\\') !== false) {
              $nsParts = explode('\\', $this->extends);
              $this->extendsClass = array_pop($nsParts);
              $this->extendsNamespace = implode('\\', $nsParts);
          }
      }
code_tokens: protected function detectExtendsNamespace ( ) { if ( strpos ( $ this -> extends , '\\' ) !== false ) { $ nsParts = explode ( '\\' , $ this -> extends ) ; $ this -> extendsClass = array_pop ( $ nsParts ) ; $ this -> extendsNamespace = implode ( '\\' , $ nsParts ) ; } }
docstring: Detect the extends namespace
docstring_tokens: Detect the extends namespace