public function save()
    {
        $contents = array_filter($this->contents);

        if (empty($contents)) {
            return;
        }

        if (!file_exists($this->filepath)) {
            mkdir($this->filepath);
        }

        return (new YamlFilesystem($contents, $this->filepath))
            ->save(static::FILE_NAME);
    }
public function save()
    {
        $contents = array_filter($this->contents);

        if (empty($contents)) {
            return;
        }

        if (!file_exists($this->filepath)) {
            mkdir($this->filepath);
        }

        return (new YamlFilesystem($contents, $this->filepath))
            ->save(static::FILE_NAME);
    }
public function save ( ) { $ contents = array_filter ( $ this -> contents ) ; if ( empty ( $ contents ) ) { return ; } if ( ! file_exists ( $ this -> filepath ) ) { mkdir ( $ this -> filepath ) ; } return ( new YamlFilesystem ( $ contents , $ this -> filepath ) ) -> save ( static :: FILE_NAME ) ; }
Save the YAML store.

@return int|bool
The number of bytes that were written to the file, or FALSE.
Save the YAML store .