original_string: private function tag_get_type(string $text){
      if (
        ($this->mode === 'js') ||
        ($this->mode === 'vue')
      ){
        preg_match('/(?:\{)(.+)(?:\})/', $text, $type, PREG_OFFSET_CAPTURE);
      }
      else if ( $this->mode === 'php' ){
        preg_match('/(?:\@[a-z]+\s{1})(.+)(?:\s{1}\$)/', $text, $type, PREG_OFFSET_CAPTURE);
        $type[0] = $type[1];
      }
      return $type;
    }
code: private function tag_get_type(string $text){
      if (
        ($this->mode === 'js') ||
        ($this->mode === 'vue')
      ){
        preg_match('/(?:\{)(.+)(?:\})/', $text, $type, PREG_OFFSET_CAPTURE);
      }
      else if ( $this->mode === 'php' ){
        preg_match('/(?:\@[a-z]+\s{1})(.+)(?:\s{1}\$)/', $text, $type, PREG_OFFSET_CAPTURE);
        $type[0] = $type[1];
      }
      return $type;
    }
code_tokens: private function tag_get_type ( string $ text ) { if ( ( $ this -> mode === 'js' ) || ( $ this -> mode === 'vue' ) ) { preg_match ( '/(?:\{)(.+)(?:\})/' , $ text , $ type , PREG_OFFSET_CAPTURE ) ; } else if ( $ this -> mode === 'php' ) { preg_match ( '/(?:\@[a-z]+\s{1})(.+)(?:\s{1}\$)/' , $ text , $ type , PREG_OFFSET_CAPTURE ) ; $ type [ 0 ] = $ type [ 1 ] ; } return $ type ; }
docstring: Gets tag 'type'
  
  @param string $text The tag text
  @return array
docstring_tokens: Gets tag type