source/Internal/Review/Service/ReviewAndRatingMergingService.php
private function isRatingWithoutReview(Rating $rating, ArrayCollection $reviews)
    {
        $withoutReview = true;

        foreach ($reviews as $review) {
            if ($this->isReviewRating($review, $rating)) {
                $withoutReview = false;
                break;
            }
        }

        return $withoutReview;
    }
private function isRatingWithoutReview(Rating $rating, ArrayCollection $reviews)
    {
        $withoutReview = true;

        foreach ($reviews as $review) {
            if ($this->isReviewRating($review, $rating)) {
                $withoutReview = false;
                break;
            }
        }

        return $withoutReview;
    }
private function isRatingWithoutReview ( Rating $ rating , ArrayCollection $ reviews ) { $ withoutReview = true ; foreach ( $ reviews as $ review ) { if ( $ this -> isReviewRating ( $ review , $ rating ) ) { $ withoutReview = false ; break ; } } return $ withoutReview ; }
Returns true if Rating doesn't belong to any review.

@param Rating          $rating
@param ArrayCollection $reviews

@return bool
Returns true if Rating doesn t belong to any review .