code: protected function applyFix(\SplFileInfo $file, Tokens $tokens)
      {
          foreach ($tokens as $index => $token) {
              if (!$token->isGivenKind(T_DOC_COMMENT)) {
                  continue;
              }
  
              $doc = new DocBlock($token->getContent());
              $end = (new ShortDescription($doc))->getEnd();
  
              if (null !== $end) {
                  $line = $doc->getLine($end);
                  $content = rtrim($line->getContent());
  
                  if (!$this->isCorrectlyFormatted($content)) {
                      $line->setContent($content.'.'.$this->whitespacesConfig->getLineEnding());
                      $tokens[$index] = new Token([T_DOC_COMMENT, $doc->getContent()]);
                  }
              }
          }
      }
docs: {@inheritdoc}