src/Util/JsonFile.php
private function makeBackup()
    {
        if ((null === $this->backupFile) || !file_exists($this->filename)) {
            return;
        }

        if (!is_dir(dirname($this->backupFile))) {
            mkdir(dirname($this->backupFile), 0700, true);
        }

        copy($this->filename, $this->backupFile);
    }
private function makeBackup()
    {
        if ((null === $this->backupFile) || !file_exists($this->filename)) {
            return;
        }

        if (!is_dir(dirname($this->backupFile))) {
            mkdir(dirname($this->backupFile), 0700, true);
        }

        copy($this->filename, $this->backupFile);
    }
private function makeBackup ( ) { if ( ( null === $ this -> backupFile ) || ! file_exists ( $ this -> filename ) ) { return ; } if ( ! is_dir ( dirname ( $ this -> backupFile ) ) ) { mkdir ( dirname ( $ this -> backupFile ) , 0700 , true ) ; } copy ( $ this -> filename , $ this -> backupFile ) ; }
Copy the file contents over to the backup.

@return void
Copy the file contents over to the backup .