src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php
private function extractContentFromAnnotation(Annotation $annotation)
    {
        $tag = $annotation->getTag()->getName();

        Preg::match('/@'.$tag.'\s+(.+)$/s', $annotation->getContent(), $matches);
        $content = $matches[1];
        if (Preg::match('/\R/u', $content)) {
            $content = Preg::replace('/\s*\R+\s*\*\s*/u', ' ', $content);
        }

        return rtrim($content);
    }
private function extractContentFromAnnotation(Annotation $annotation)
    {
        $tag = $annotation->getTag()->getName();

        Preg::match('/@'.$tag.'\s+(.+)$/s', $annotation->getContent(), $matches);
        $content = $matches[1];
        if (Preg::match('/\R/u', $content)) {
            $content = Preg::replace('/\s*\R+\s*\*\s*/u', ' ', $content);
        }

        return rtrim($content);
    }
private function extractContentFromAnnotation ( Annotation $ annotation ) { $ tag = $ annotation -> getTag ( ) -> getName ( ) ; Preg :: match ( '/@' . $ tag . '\s+(.+)$/s' , $ annotation -> getContent ( ) , $ matches ) ; $ content = $ matches [ 1 ] ; if ( Preg :: match ( '/\R/u' , $ content ) ) { $ content = Preg :: replace ( '/\s*\R+\s*\*\s*/u' , ' ' , $ content ) ; } return rtrim ( $ content ) ; }
@param Annotation $annotation

@return string
@param Annotation $annotation