Config/Devbr/Cli/Optimizer.php
function save(string $file = null)
    {
        if ($file == null) {
            $file = static::$configFile;
        }

        $a = null;
        foreach ($this as $k => $v) {
            $a[$k] = $v;
        }
        return file_put_contents($file, json_encode($a, JSON_PRETTY_PRINT));
    }
function save(string $file = null)
    {
        if ($file == null) {
            $file = static::$configFile;
        }

        $a = null;
        foreach ($this as $k => $v) {
            $a[$k] = $v;
        }
        return file_put_contents($file, json_encode($a, JSON_PRETTY_PRINT));
    }
function save ( string $ file = null ) { if ( $ file == null ) { $ file = static :: $ configFile ; } $ a = null ; foreach ( $ this as $ k => $ v ) { $ a [ $ k ] = $ v ; } return file_put_contents ( $ file , json_encode ( $ a , JSON_PRETTY_PRINT ) ) ; }
Save to Json config file
@param  string|null $file path to save
@return bool|number           number of bytes saved in file or FALSE.
Save to Json config file