original_string: public function getLimits($item = null)
      {
          $limits = array(
              'sku' => (int) $this->config->get('cart_sku_limit', 10),
              'item' => (int) $this->config->get('cart_item_limit', 20)
          );
  
          return isset($item) ? $limits[$item] : $limits;
      }
code: public function getLimits($item = null)
      {
          $limits = array(
              'sku' => (int) $this->config->get('cart_sku_limit', 10),
              'item' => (int) $this->config->get('cart_item_limit', 20)
          );
  
          return isset($item) ? $limits[$item] : $limits;
      }
code_tokens: public function getLimits ( $ item = null ) { $ limits = array ( 'sku' => ( int ) $ this -> config -> get ( 'cart_sku_limit' , 10 ) , 'item' => ( int ) $ this -> config -> get ( 'cart_item_limit' , 20 ) ) ; return isset ( $ item ) ? $ limits [ $ item ] : $ limits ; }
docstring: Returns cart limits
  @param null|string $item
  @return array|integer
docstring_tokens: Returns cart limits