original_string: protected function reindexProductsCompare(array $products)
      {
          $prepared = array();
  
          foreach ($products as $product_id => $product) {
              $prepared[$product['product_class_id']][$product_id] = $product;
          }
  
          return $prepared;
      }
code: protected function reindexProductsCompare(array $products)
      {
          $prepared = array();
  
          foreach ($products as $product_id => $product) {
              $prepared[$product['product_class_id']][$product_id] = $product;
          }
  
          return $prepared;
      }
code_tokens: protected function reindexProductsCompare ( array $ products ) { $ prepared = array ( ) ; foreach ( $ products as $ product_id => $ product ) { $ prepared [ $ product [ 'product_class_id' ] ] [ $ product_id ] = $ product ; } return $ prepared ; }
docstring: Returns an array of products indexed by a class ID
  @param array $products
  @return array
docstring_tokens: Returns an array of products indexed by a class ID