| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 38 | public function execute() | ||
| 39 |     { | ||
| 40 |         $url = $this->_url->getUrl('checkout/cart'); | ||
| 41 | |||
| 42 |         if (!$this->customerSession->isLoggedIn()) { | ||
| 43 |             $this->messageManager->addSuccessMessage(__('Please sign in to see your cart.')); | ||
| 44 | $this->customerSession->setBeforeAuthUrl($url); | ||
| 45 |             $url = $this->_url->getUrl('customer/account/login'); | ||
| 46 | } | ||
| 47 | |||
| 48 | $this->_redirect($url); | ||
| 49 | } | ||
| 51 |