src/Standards/BestIt/CodeSniffer/Helper/LineHelper.php
public function removeLine(int $line): void
    {
        foreach ($this->file->getTokens() as $tagPtr => $tagToken) {
            if ($tagToken['line'] !== $line) {
                continue;
            }

            $this->fixer->replaceToken($tagPtr, '');

            if ($tagToken['line'] > $line) {
                break;
            }
        }
    }
public function removeLine(int $line): void
    {
        foreach ($this->file->getTokens() as $tagPtr => $tagToken) {
            if ($tagToken['line'] !== $line) {
                continue;
            }

            $this->fixer->replaceToken($tagPtr, '');

            if ($tagToken['line'] > $line) {
                break;
            }
        }
    }
public function removeLine ( int $ line ) : void { foreach ( $ this -> file -> getTokens ( ) as $ tagPtr => $ tagToken ) { if ( $ tagToken [ 'line' ] !== $ line ) { continue ; } $ this -> fixer -> replaceToken ( $ tagPtr , '' ) ; if ( $ tagToken [ 'line' ] > $ line ) { break ; } } }
Removes the given line.

@param int $line The line which is to be removed

@return void
Removes the given line .