code: protected function applyFix(\SplFileInfo $file, Tokens $tokens)
      {
          for ($index = \count($tokens) - 1; $index > 1; --$index) {
              if (!$tokens[$index]->isGivenKind(T_CLOSE_TAG)) {
                  continue;
              }
  
              $prev = $tokens->getPrevMeaningfulToken($index);
              if ($tokens[$prev]->equalsAny([';', '{', '}', ':', [T_OPEN_TAG]])) {
                  continue;
              }
  
              $tokens->insertAt($prev + 1, new Token(';'));
          }
      }
docs: {@inheritdoc}