Config/Devbr/Cli/Optimizer.php
function load(string $file = null)
    {
        if ($file == null) {
            $file = static::$configFile;
        }
        if (!file_exists($file)) {
            return false;
        }

        $a = json_decode(file_get_contents($file));

        if (isset($a->css)) {
            $this->css = $a->css;
        }

        if (isset($a->js)) {
            $this->js = $a->js;
        }
        
        if (isset($a->jss)) {
            $this->jss = $a->jss;
        }
        
        return true;
    }
function load(string $file = null)
    {
        if ($file == null) {
            $file = static::$configFile;
        }
        if (!file_exists($file)) {
            return false;
        }

        $a = json_decode(file_get_contents($file));

        if (isset($a->css)) {
            $this->css = $a->css;
        }

        if (isset($a->js)) {
            $this->js = $a->js;
        }
        
        if (isset($a->jss)) {
            $this->jss = $a->jss;
        }
        
        return true;
    }
function load ( string $ file = null ) { if ( $ file == null ) { $ file = static :: $ configFile ; } if ( ! file_exists ( $ file ) ) { return false ; } $ a = json_decode ( file_get_contents ( $ file ) ) ; if ( isset ( $ a -> css ) ) { $ this -> css = $ a -> css ; } if ( isset ( $ a -> js ) ) { $ this -> js = $ a -> js ; } if ( isset ( $ a -> jss ) ) { $ this -> jss = $ a -> jss ; } return true ; }
Load configuration json file
@param  string|null $file path and filename
@return bool            success (treu/false)
Load configuration json file