original_string: private function computeEndpoint(): UrlInterface
      {
          if (!$this->transactions->isOpened()) {
              return Url::fromString('/db/data/transaction/commit');
          }
  
          return $this->transactions->current()->endpoint();
      }
code: private function computeEndpoint(): UrlInterface
      {
          if (!$this->transactions->isOpened()) {
              return Url::fromString('/db/data/transaction/commit');
          }
  
          return $this->transactions->current()->endpoint();
      }
code_tokens: private function computeEndpoint ( ) : UrlInterface { if ( ! $ this -> transactions -> isOpened ( ) ) { return Url :: fromString ( '/db/data/transaction/commit' ) ; } return $ this -> transactions -> current ( ) -> endpoint ( ) ; }
docstring: Determine the appropriate endpoint based on the transactions
docstring_tokens: Determine the appropriate endpoint based on the transactions