original_string: protected function addUndoEnd(Builder $builder): void
      {
          $builder->macro('undoEnd', function (Builder $builder) {
              $builder->withEnded();
  
              return $builder->update(['ended_at' => null]);
          });
      }
code: protected function addUndoEnd(Builder $builder): void
      {
          $builder->macro('undoEnd', function (Builder $builder) {
              $builder->withEnded();
  
              return $builder->update(['ended_at' => null]);
          });
      }
code_tokens: protected function addUndoEnd ( Builder $ builder ) : void { $ builder -> macro ( 'undoEnd' , function ( Builder $ builder ) { $ builder -> withEnded ( ) ; return $ builder -> update ( [ 'ended_at' => null ] ) ; } ) ; }
docstring: Add the `undoEnd` extension to the builder.
  
  @param \Illuminate\Database\Eloquent\Builder $builder
  @return void
docstring_tokens: Add the undoEnd extension to the builder .