public function writeChanges()
    {
        foreach ($this->pendingOperations as $targetPath => $templateData) {
            if (isset($templateData['contents'])) {
                $this->fileManager->dumpFile($targetPath, $templateData['contents']);

                continue;
            }

            $this->fileManager->dumpFile(
                $targetPath,
                $this->getFileContentsForPendingOperation($targetPath, $templateData)
            );
        }

        $this->pendingOperations = [];
    }
public function writeChanges()
    {
        foreach ($this->pendingOperations as $targetPath => $templateData) {
            if (isset($templateData['contents'])) {
                $this->fileManager->dumpFile($targetPath, $templateData['contents']);

                continue;
            }

            $this->fileManager->dumpFile(
                $targetPath,
                $this->getFileContentsForPendingOperation($targetPath, $templateData)
            );
        }

        $this->pendingOperations = [];
    }
public function writeChanges ( ) { foreach ( $ this -> pendingOperations as $ targetPath => $ templateData ) { if ( isset ( $ templateData [ 'contents' ] ) ) { $ this -> fileManager -> dumpFile ( $ targetPath , $ templateData [ 'contents' ] ) ; continue ; } $ this -> fileManager -> dumpFile ( $ targetPath , $ this -> getFileContentsForPendingOperation ( $ targetPath , $ templateData ) ) ; } $ this -> pendingOperations = [ ] ; }
Actually writes and file changes that are pending.
Actually writes and file changes that are pending .