public function fix(\SplFileInfo $file, Tokens $tokens)
{
for ($index = count($tokens) - 2; $index > 0; --$index) {
if (!$tokens[$index]->equals(';')) {
continue;
}
if (!$tokens[$index + 1]->isWhitespace()) {
if (!$tokens[$index + 1]->equalsAny(array(')', array(T_INLINE_HTML)))) {
$tokens->insertAt($index + 1, new Token(array(T_WHITESPACE, ' ')));
}
} elseif (isset($tokens[$index + 2]) && !$tokens[$index + 1]->equals(array(T_WHITESPACE, ' ')) && $tokens[$index + 1]->isWhitespace(" \t") && !$tokens[$index + 2]->isComment() && !$tokens[$index + 2]->equals(')')) {
$tokens[$index + 1]->setContent(' ');
}
}
}