private function appendCollectedFileAndChanges(): void
    {
        if (!empty($this->currentFile)) {
            foreach ($this->currentChanges as $change) {
                $this->currentFile->addChange($change);
            }
            $this->files[] = $this->currentFile;
        }
        $this->currentChanges = [];
    }
private function appendCollectedFileAndChanges(): void
    {
        if (!empty($this->currentFile)) {
            foreach ($this->currentChanges as $change) {
                $this->currentFile->addChange($change);
            }
            $this->files[] = $this->currentFile;
        }
        $this->currentChanges = [];
    }
private function appendCollectedFileAndChanges ( ) : void { if ( ! empty ( $ this -> currentFile ) ) { foreach ( $ this -> currentChanges as $ change ) { $ this -> currentFile -> addChange ( $ change ) ; } $ this -> files [ ] = $ this -> currentFile ; } $ this -> currentChanges = [ ] ; }
Add all collected changes to its file.

@return void
Add all collected changes to its file .