code: private function getMatches($line, $matchCommentOnly = false)
      {
          if (Preg::match($this->regex, $line, $matches)) {
              if (!empty($matches['tag2'])) {
                  $matches['tag'] = $matches['tag2'];
                  $matches['hint'] = $matches['hint2'];
                  $matches['var'] = '';
              }
  
              if (!empty($matches['tag3'])) {
                  $matches['tag'] = $matches['tag3'];
                  $matches['hint'] = $matches['hint3'];
                  $matches['var'] = $matches['signature'];
              }
  
              if (isset($matches['hint'])) {
                  $matches['hint'] = trim($matches['hint']);
              }
  
              return $matches;
          }
  
          if ($matchCommentOnly && Preg::match($this->regexCommentLine, $line, $matches)) {
              $matches['tag'] = null;
              $matches['var'] = '';
              $matches['hint'] = '';
  
              return $matches;
          }
      }
docs: @param string $line
  @param bool   $matchCommentOnly
  
  @return null|string[]