original_string: protected function getResultDelete(array $data)
      {
          unset($data['product_id']);
  
          $existing = $this->wishlist->getList($data);
  
          return array(
              'message' => '',
              'severity' => 'success',
              'quantity' => count($existing),
              'redirect' => empty($existing) ? 'wishlist' : ''
          );
      }
code: protected function getResultDelete(array $data)
      {
          unset($data['product_id']);
  
          $existing = $this->wishlist->getList($data);
  
          return array(
              'message' => '',
              'severity' => 'success',
              'quantity' => count($existing),
              'redirect' => empty($existing) ? 'wishlist' : ''
          );
      }
code_tokens: protected function getResultDelete ( array $ data ) { unset ( $ data [ 'product_id' ] ) ; $ existing = $ this -> wishlist -> getList ( $ data ) ; return array ( 'message' => '' , 'severity' => 'success' , 'quantity' => count ( $ existing ) , 'redirect' => empty ( $ existing ) ? 'wishlist' : '' ) ; }
docstring: Returns an array of resulting data when a product has been deleted from a wishlist
  @param array $data
  @return array
docstring_tokens: Returns an array of resulting data when a product has been deleted from a wishlist