private function clearWhitespacesBeforeIndex(Tokens $tokens, $index) { $token = $tokens[$index - 1]; if ($token->isGivenKind(T_WHITESPACE)) { $token->clear(); } }