code: private function isNoBreakComment(Token $token)
      {
          if (!$token->isComment()) {
              return false;
          }
  
          $text = preg_quote($this->configuration['comment_text'], '~');
  
          return 1 === Preg::match("~^((//|#)\\s*{$text}\\s*)|(/\\*\\*?\\s*{$text}\\s*\\*/)$~i", $token->getContent());
      }
docs: @param Token $token
  
  @return bool