original_string: public function getAllSimpleItems($order)
      {
          $items = array();
  
          foreach ($order->getAllItems() as $item) {
              if ($item->getProductType() == 'simple') {
                  $items[] = $item;
              }
          }
  
          return $items;
      }
code: public function getAllSimpleItems($order)
      {
          $items = array();
  
          foreach ($order->getAllItems() as $item) {
              if ($item->getProductType() == 'simple') {
                  $items[] = $item;
              }
          }
  
          return $items;
      }
code_tokens: public function getAllSimpleItems ( $ order ) { $ items = array ( ) ; foreach ( $ order -> getAllItems ( ) as $ item ) { if ( $ item -> getProductType ( ) == 'simple' ) { $ items [ ] = $ item ; } } return $ items ; }
docstring: Get all the simple items in an order.
  
  @param Mage_Shipping_Model_Rate_Request|Mage_Sales_Model_Order $order Order to retrieve items for
  
  @return array List of simple products from order
docstring_tokens: Get all the simple items in an order .