original_string: protected function getResultAdded()
      {
          $quantity = count($this->compare->getList());
  
          if ($quantity < $this->compare->getLimit()) {
              $quantity++;
          }
  
          $message = $this->translation->text('Product has been added to <a href="@url">comparison</a>', array(
              '@url' => $this->url->get('compare')));
  
          return array(
              'redirect' => '',
              'severity' => 'success',
              'quantity' => $quantity,
              'message' => $message
          );
      }
code: protected function getResultAdded()
      {
          $quantity = count($this->compare->getList());
  
          if ($quantity < $this->compare->getLimit()) {
              $quantity++;
          }
  
          $message = $this->translation->text('Product has been added to <a href="@url">comparison</a>', array(
              '@url' => $this->url->get('compare')));
  
          return array(
              'redirect' => '',
              'severity' => 'success',
              'quantity' => $quantity,
              'message' => $message
          );
      }
code_tokens: protected function getResultAdded ( ) { $ quantity = count ( $ this -> compare -> getList ( ) ) ; if ( $ quantity < $ this -> compare -> getLimit ( ) ) { $ quantity ++ ; } $ message = $ this -> translation -> text ( 'Product has been added to <a href="@url">comparison</a>' , array ( '@url' => $ this -> url -> get ( 'compare' ) ) ) ; return array ( 'redirect' => '' , 'severity' => 'success' , 'quantity' => $ quantity , 'message' => $ message ) ; }
docstring: Returns an array of resulting data when a product has been added to comparison
  @return array
docstring_tokens: Returns an array of resulting data when a product has been added to comparison