source/Application/Controller/FrontendController.php
public function getReviewAndRatingItemsCount()
    {
        $user = $this->getUser();
        $count = 0;
        if ($user) {
            $count = $this
                ->getContainer()
                ->get(UserReviewAndRatingBridgeInterface::class)
                ->getReviewAndRatingListCount($user->getId());
        }

        return $count;
    }
public function getReviewAndRatingItemsCount()
    {
        $user = $this->getUser();
        $count = 0;
        if ($user) {
            $count = $this
                ->getContainer()
                ->get(UserReviewAndRatingBridgeInterface::class)
                ->getReviewAndRatingListCount($user->getId());
        }

        return $count;
    }
public function getReviewAndRatingItemsCount ( ) { $ user = $ this -> getUser ( ) ; $ count = 0 ; if ( $ user ) { $ count = $ this -> getContainer ( ) -> get ( UserReviewAndRatingBridgeInterface :: class ) -> getReviewAndRatingListCount ( $ user -> getId ( ) ) ; } return $ count ; }
Get the total number of reviews for the active user.

@return integer Number of reviews
Get the total number of reviews for the active user .