Bolt\Configuration\YamlUpdater::verify PHP Method

verify() protected method

Verify if the modified YAML is still a valid .yml file, and if we are actually allowed to write and update the current file.
protected verify ( ) : boolean
return boolean
    protected function verify()
    {
        if (is_array($this->yaml)) {
            $this->yaml = implode("\n", $this->yaml);
        }
        // This will throw a ParseException If the YAML is not valid
        $this->parser->parse($this->yaml, true, true);
        return true;
    }