Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
53 | public function processViews($productId) |
||
54 | { |
||
55 | if (!$this->_config->isEnabled()) { |
||
56 | return false; |
||
57 | } |
||
58 | |||
59 | if ($this->_customerSession->isLoggedIn()) { |
||
60 | return $this->_eventClient->saveCustomerViewProduct( |
||
61 | $this->_customerSession->getCustomerId(), |
||
62 | $productId |
||
63 | ); |
||
64 | } |
||
65 | } |
||
66 | } |
||
67 |