packages/TokenRunner/src/Transformer/FixerTransformer/LineLengthTransformer.php
private function isLastItem(Tokens $tokens, int $i): bool
    {
        return Strings::contains($tokens[$i + 1]->getContent(), $this->whitespacesFixerConfig->getLineEnding());
    }
private function isLastItem(Tokens $tokens, int $i): bool
    {
        return Strings::contains($tokens[$i + 1]->getContent(), $this->whitespacesFixerConfig->getLineEnding());
    }
private function isLastItem ( Tokens $ tokens , int $ i ) : bool { return Strings :: contains ( $ tokens [ $ i + 1 ] -> getContent ( ) , $ this -> whitespacesFixerConfig -> getLineEnding ( ) ) ; }
Has already newline? usually the last line => skip to prevent double spacing
Has already newline? usually the last line = > skip to prevent double spacing