original_string: protected function controlLimit(array &$product_ids)
      {
          $limit = $this->getLimit();
  
          if (!empty($limit)) {
              $product_ids = array_slice($product_ids, 0, $limit);
          }
      }
code: protected function controlLimit(array &$product_ids)
      {
          $limit = $this->getLimit();
  
          if (!empty($limit)) {
              $product_ids = array_slice($product_ids, 0, $limit);
          }
      }
code_tokens: protected function controlLimit ( array & $ product_ids ) { $ limit = $ this -> getLimit ( ) ; if ( ! empty ( $ limit ) ) { $ product_ids = array_slice ( $ product_ids , 0 , $ limit ) ; } }
docstring: Reduces a number of items to save
  @param array $product_ids
docstring_tokens: Reduces a number of items to save