original_string: public function commit()
      {
          $this->assert();
  
          $current = $this->current;
          $this->current = $current->getParentKeepingChildren();
  
          if (!$this->current instanceof Transaction) {
              // There are no transactions, dispatch all reserved payloads
              foreach ($current->flatten() as $payload) {
                  $payload->fire();
              }
          }
      }
code: public function commit()
      {
          $this->assert();
  
          $current = $this->current;
          $this->current = $current->getParentKeepingChildren();
  
          if (!$this->current instanceof Transaction) {
              // There are no transactions, dispatch all reserved payloads
              foreach ($current->flatten() as $payload) {
                  $payload->fire();
              }
          }
      }
code_tokens: public function commit ( ) { $ this -> assert ( ) ; $ current = $ this -> current ; $ this -> current = $ current -> getParentKeepingChildren ( ) ; if ( ! $ this -> current instanceof Transaction ) { // There are no transactions, dispatch all reserved payloads foreach ( $ current -> flatten ( ) as $ payload ) { $ payload -> fire ( ) ; } } }
docstring: Should be called after transaction committed.
  
  @return void
docstring_tokens: Should be called after transaction committed .