original_string: protected function controlAccessCheckoutComplete()
      {
          if (empty($this->data_order['user_id']) || $this->data_order['user_id'] !== $this->cart_uid) {
              $this->outputHttpStatus(403);
          }
  
          if (!$this->order->isPending($this->data_order)) {
              $this->outputHttpStatus(403);
          }
      }
code: protected function controlAccessCheckoutComplete()
      {
          if (empty($this->data_order['user_id']) || $this->data_order['user_id'] !== $this->cart_uid) {
              $this->outputHttpStatus(403);
          }
  
          if (!$this->order->isPending($this->data_order)) {
              $this->outputHttpStatus(403);
          }
      }
code_tokens: protected function controlAccessCheckoutComplete ( ) { if ( empty ( $ this -> data_order [ 'user_id' ] ) || $ this -> data_order [ 'user_id' ] !== $ this -> cart_uid ) { $ this -> outputHttpStatus ( 403 ) ; } if ( ! $ this -> order -> isPending ( $ this -> data_order ) ) { $ this -> outputHttpStatus ( 403 ) ; } }
docstring: Controls access to the checkout complete page
docstring_tokens: Controls access to the checkout complete page