Counter/SessionCounter.php
public function count(VisitableInterface $visitable)
    {
        $uniqueViews = $this->getUniqueViewsVariable();

        if ($uniqueViews === null) {
            $uniqueViews = array();

            $this->saveVisitableType($uniqueViews, $visitable);

            $this->visitableManager->update($visitable);
        } elseif (!isset($uniqueViews[$visitable->getVisitableType()])) {
            $this->saveVisitableType($uniqueViews, $visitable);

            $this->visitableManager->update($visitable);
        } elseif (!isset($uniqueViews[$visitable->getVisitableType()][$visitable->getVisitableId()])) {
            $this->saveVisitableId($uniqueViews, $visitable);

            $this->visitableManager->update($visitable);
        }
    }
public function count(VisitableInterface $visitable)
    {
        $uniqueViews = $this->getUniqueViewsVariable();

        if ($uniqueViews === null) {
            $uniqueViews = array();

            $this->saveVisitableType($uniqueViews, $visitable);

            $this->visitableManager->update($visitable);
        } elseif (!isset($uniqueViews[$visitable->getVisitableType()])) {
            $this->saveVisitableType($uniqueViews, $visitable);

            $this->visitableManager->update($visitable);
        } elseif (!isset($uniqueViews[$visitable->getVisitableType()][$visitable->getVisitableId()])) {
            $this->saveVisitableId($uniqueViews, $visitable);

            $this->visitableManager->update($visitable);
        }
    }
{@inheritdoc}