original_string: public function commit()
      {
          if (!$this->_transactionStarted) {
              return false;
          }
  
          if ($this->_transactionLevel === 0) {
              if ($this->wasNestedTransactionRolledback()) {
                  $e = $this->nestedTransactionRollbackException;
                  $this->nestedTransactionRollbackException = null;
                  throw $e;
              }
  
              $this->_transactionStarted = false;
              $this->nestedTransactionRollbackException = null;
              if ($this->_logQueries) {
                  $this->log('COMMIT');
              }
  
              return $this->_driver->commitTransaction();
          }
          if ($this->isSavePointsEnabled()) {
              $this->releaseSavePoint((string)$this->_transactionLevel);
          }
  
          $this->_transactionLevel--;
  
          return true;
      }
code: public function commit()
      {
          if (!$this->_transactionStarted) {
              return false;
          }
  
          if ($this->_transactionLevel === 0) {
              if ($this->wasNestedTransactionRolledback()) {
                  $e = $this->nestedTransactionRollbackException;
                  $this->nestedTransactionRollbackException = null;
                  throw $e;
              }
  
              $this->_transactionStarted = false;
              $this->nestedTransactionRollbackException = null;
              if ($this->_logQueries) {
                  $this->log('COMMIT');
              }
  
              return $this->_driver->commitTransaction();
          }
          if ($this->isSavePointsEnabled()) {
              $this->releaseSavePoint((string)$this->_transactionLevel);
          }
  
          $this->_transactionLevel--;
  
          return true;
      }
code_tokens: public function commit ( ) { if ( ! $ this -> _transactionStarted ) { return false ; } if ( $ this -> _transactionLevel === 0 ) { if ( $ this -> wasNestedTransactionRolledback ( ) ) { $ e = $ this -> nestedTransactionRollbackException ; $ this -> nestedTransactionRollbackException = null ; throw $ e ; } $ this -> _transactionStarted = false ; $ this -> nestedTransactionRollbackException = null ; if ( $ this -> _logQueries ) { $ this -> log ( 'COMMIT' ) ; } return $ this -> _driver -> commitTransaction ( ) ; } if ( $ this -> isSavePointsEnabled ( ) ) { $ this -> releaseSavePoint ( ( string ) $ this -> _transactionLevel ) ; } $ this -> _transactionLevel -- ; return true ; }
docstring: Commits current transaction.
  
  @return bool true on success, false otherwise
docstring_tokens: Commits current transaction .