original_string: protected function finishOrderCheckout(array $result)
      {
          if ($this->admin === 'add') {
              $this->finishAddOrderCheckout($result);
          } else if ($this->admin === 'clone') {
              $this->finishCloneOrderCheckout($result);
          }
  
          $this->redirect($result['redirect'], $result['message'], $result['severity']);
      }
code: protected function finishOrderCheckout(array $result)
      {
          if ($this->admin === 'add') {
              $this->finishAddOrderCheckout($result);
          } else if ($this->admin === 'clone') {
              $this->finishCloneOrderCheckout($result);
          }
  
          $this->redirect($result['redirect'], $result['message'], $result['severity']);
      }
code_tokens: protected function finishOrderCheckout ( array $ result ) { if ( $ this -> admin === 'add' ) { $ this -> finishAddOrderCheckout ( $ result ) ; } else if ( $ this -> admin === 'clone' ) { $ this -> finishCloneOrderCheckout ( $ result ) ; } $ this -> redirect ( $ result [ 'redirect' ] , $ result [ 'message' ] , $ result [ 'severity' ] ) ; }
docstring: Performs final tasks after an order has been created
  @param array $result
docstring_tokens: Performs final tasks after an order has been created