PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer::ensureAreTogether PHP Метод

ensureAreTogether() приватный Метод

Force the given annotations to immediately follow each other.
private ensureAreTogether ( PhpCsFixer\DocBlock\DocBlock $doc, Annotation $first, Annotation $second )
$doc PhpCsFixer\DocBlock\DocBlock
$first PhpCsFixer\DocBlock\Annotation
$second PhpCsFixer\DocBlock\Annotation
    private function ensureAreTogether(DocBlock $doc, Annotation $first, Annotation $second)
    {
        $pos = $first->getEnd();
        $final = $second->getStart();
        for ($pos = $pos + 1; $pos < $final; ++$pos) {
            $doc->getLine($pos)->remove();
        }
    }