original_string: protected function getListCategoryProduct($store_id)
      {
          $types = $this->category_group->getTypes();
  
          $categories = array();
          foreach (array_keys($types) as $type) {
  
              $op = array(
                  'type' => $type,
                  'store_id' => $store_id
              );
  
              $data = $this->getCategoryOptionsByStore($this->category, $this->category_group, $op);
              $categories[$type] = reset($data);
          }
  
          return $categories;
      }
code: protected function getListCategoryProduct($store_id)
      {
          $types = $this->category_group->getTypes();
  
          $categories = array();
          foreach (array_keys($types) as $type) {
  
              $op = array(
                  'type' => $type,
                  'store_id' => $store_id
              );
  
              $data = $this->getCategoryOptionsByStore($this->category, $this->category_group, $op);
              $categories[$type] = reset($data);
          }
  
          return $categories;
      }
code_tokens: protected function getListCategoryProduct ( $ store_id ) { $ types = $ this -> category_group -> getTypes ( ) ; $ categories = array ( ) ; foreach ( array_keys ( $ types ) as $ type ) { $ op = array ( 'type' => $ type , 'store_id' => $ store_id ) ; $ data = $ this -> getCategoryOptionsByStore ( $ this -> category , $ this -> category_group , $ op ) ; $ categories [ $ type ] = reset ( $ data ) ; } return $ categories ; }
docstring: Returns an array of categories keyed by a type
  @param integer $store_id
  @return array
docstring_tokens: Returns an array of categories keyed by a type