original_string: public function addHistory($event)
      {
          /** @var $order Mage_Sales_Model_Order */
          $order = $event->getOrder();
          if ($order && $order->getPayment()) {
              if ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Directdeposit::CODE) {
                  $order->addStatusHistoryComment('Order placed with Direct Deposit')->setIsCustomerNotified(false);
              } elseif ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Bpay::CODE) {
                  $order->addStatusHistoryComment('Order placed with BPay')->setIsCustomerNotified(false);
              }
          }
      }
code: public function addHistory($event)
      {
          /** @var $order Mage_Sales_Model_Order */
          $order = $event->getOrder();
          if ($order && $order->getPayment()) {
              if ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Directdeposit::CODE) {
                  $order->addStatusHistoryComment('Order placed with Direct Deposit')->setIsCustomerNotified(false);
              } elseif ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Bpay::CODE) {
                  $order->addStatusHistoryComment('Order placed with BPay')->setIsCustomerNotified(false);
              }
          }
      }
code_tokens: public function addHistory ( $ event ) { /** @var $order Mage_Sales_Model_Order */ $ order = $ event -> getOrder ( ) ; if ( $ order && $ order -> getPayment ( ) ) { if ( $ order -> getPayment ( ) -> getMethod ( ) == Fontis_Australia_Model_Payment_Directdeposit :: CODE ) { $ order -> addStatusHistoryComment ( 'Order placed with Direct Deposit' ) -> setIsCustomerNotified ( false ) ; } elseif ( $ order -> getPayment ( ) -> getMethod ( ) == Fontis_Australia_Model_Payment_Bpay :: CODE ) { $ order -> addStatusHistoryComment ( 'Order placed with BPay' ) -> setIsCustomerNotified ( false ) ; } } }
docstring: Adds a history entry to orders placed using AU direct deposit or BPay.
  
  @listen checkout_type_onepage_save_order
  @param Varien_Event_Observer $event
docstring_tokens: Adds a history entry to orders placed using AU direct deposit or BPay .