protected function save($backup)
    {
        $yaml = $this->lines->join("\n");

        Yaml::parse($yaml, true, true);

        if ($backup) {
            $this->file->copy($this->file->getPath() . '.' . date('Ymd-His'));
        }

        $this->file->update($yaml);
    }
protected function save($backup)
    {
        $yaml = $this->lines->join("\n");

        Yaml::parse($yaml, true, true);

        if ($backup) {
            $this->file->copy($this->file->getPath() . '.' . date('Ymd-His'));
        }

        $this->file->update($yaml);
    }
protected function save ( $ backup ) { $ yaml = $ this -> lines -> join ( "\n" ) ; Yaml :: parse ( $ yaml , true , true ) ; if ( $ backup ) { $ this -> file -> copy ( $ this -> file -> getPath ( ) . '.' . date ( 'Ymd-His' ) ) ; } $ this -> file -> update ( $ yaml ) ; }
Save our modified .yml file.

@param bool $backup Back up the file before committing changes to it

@throws IOException
@throws ParseException
Save our modified . yml file .