original_string: public function getStatuses()
      {
          $statuses = &gplcart_static('order.statuses');
  
          if (isset($statuses)) {
              return $statuses;
          }
  
          $statuses = array(
              'pending' => $this->translation->text('Pending'),
              'canceled' => $this->translation->text('Canceled'),
              'delivered' => $this->translation->text('Delivered'),
              'completed' => $this->translation->text('Completed'),
              'processing' => $this->translation->text('Processing'),
              'dispatched' => $this->translation->text('Dispatched'),
              'pending_payment' => $this->translation->text('Awaiting payment')
          );
  
          $this->hook->attach('order.statuses', $statuses, $this);
          return $statuses;
      }
code: public function getStatuses()
      {
          $statuses = &gplcart_static('order.statuses');
  
          if (isset($statuses)) {
              return $statuses;
          }
  
          $statuses = array(
              'pending' => $this->translation->text('Pending'),
              'canceled' => $this->translation->text('Canceled'),
              'delivered' => $this->translation->text('Delivered'),
              'completed' => $this->translation->text('Completed'),
              'processing' => $this->translation->text('Processing'),
              'dispatched' => $this->translation->text('Dispatched'),
              'pending_payment' => $this->translation->text('Awaiting payment')
          );
  
          $this->hook->attach('order.statuses', $statuses, $this);
          return $statuses;
      }
code_tokens: public function getStatuses ( ) { $ statuses = & gplcart_static ( 'order.statuses' ) ; if ( isset ( $ statuses ) ) { return $ statuses ; } $ statuses = array ( 'pending' => $ this -> translation -> text ( 'Pending' ) , 'canceled' => $ this -> translation -> text ( 'Canceled' ) , 'delivered' => $ this -> translation -> text ( 'Delivered' ) , 'completed' => $ this -> translation -> text ( 'Completed' ) , 'processing' => $ this -> translation -> text ( 'Processing' ) , 'dispatched' => $ this -> translation -> text ( 'Dispatched' ) , 'pending_payment' => $ this -> translation -> text ( 'Awaiting payment' ) ) ; $ this -> hook -> attach ( 'order.statuses' , $ statuses , $ this ) ; return $ statuses ; }
docstring: Returns an array of order statuses
  @return array
docstring_tokens: Returns an array of order statuses