src/Standards/BestIt/Sniffs/TypeHints/ReturnTypeDeclarationSniff.php
private function getReturnsFromAnnotation(?Annotation $annotation): array
    {
        return $this->isFilledReturnAnnotation($annotation)
            ? explode('|', preg_split('~\\s+~', $annotation->getContent())[0])
            : [];
    }
private function getReturnsFromAnnotation(?Annotation $annotation): array
    {
        return $this->isFilledReturnAnnotation($annotation)
            ? explode('|', preg_split('~\\s+~', $annotation->getContent())[0])
            : [];
    }
private function getReturnsFromAnnotation ( ? Annotation $ annotation ) : array { return $ this -> isFilledReturnAnnotation ( $ annotation ) ? explode ( '|' , preg_split ( '~\\s+~' , $ annotation -> getContent ( ) ) [ 0 ] ) : [ ] ; }
Returns the return types of the annotation.

@param null|Annotation $annotation

@return array
Returns the return types of the annotation .