original_string: protected function validateStatusOrder()
      {
          $field = 'status';
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $statuses = $this->order->getStatuses();
  
          if (empty($statuses[$value])) {
              $this->setErrorUnavailable($field, $this->translation->text('Status'));
              return false;
          }
  
          return true;
      }
code: protected function validateStatusOrder()
      {
          $field = 'status';
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $statuses = $this->order->getStatuses();
  
          if (empty($statuses[$value])) {
              $this->setErrorUnavailable($field, $this->translation->text('Status'));
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateStatusOrder ( ) { $ field = 'status' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return null ; } $ statuses = $ this -> order -> getStatuses ( ) ; if ( empty ( $ statuses [ $ value ] ) ) { $ this -> setErrorUnavailable ( $ field , $ this -> translation -> text ( 'Status' ) ) ; return false ; } return true ; }
docstring: Validates a status
  @return boolean|null
docstring_tokens: Validates a status