original_string: public function notifyCreated(array $order)
      {
          $this->mail->set('order_created_admin', array($order));
  
          if (is_numeric($order['user_id']) && !empty($order['user_email'])) {
              return $this->mail->set('order_created_customer', array($order));
          }
  
          return false;
      }
code: public function notifyCreated(array $order)
      {
          $this->mail->set('order_created_admin', array($order));
  
          if (is_numeric($order['user_id']) && !empty($order['user_email'])) {
              return $this->mail->set('order_created_customer', array($order));
          }
  
          return false;
      }
code_tokens: public function notifyCreated ( array $ order ) { $ this -> mail -> set ( 'order_created_admin' , array ( $ order ) ) ; if ( is_numeric ( $ order [ 'user_id' ] ) && ! empty ( $ order [ 'user_email' ] ) ) { return $ this -> mail -> set ( 'order_created_customer' , array ( $ order ) ) ; } return false ; }
docstring: Notify when an order has been created
  @param array $order
  @return boolean
docstring_tokens: Notify when an order has been created