src/Server.php
public function getAllParams(array $params)
    {
        $all = $this->defaults;

        if (isset($params['p'])) {
            foreach (explode(',', $params['p']) as $preset) {
                if (isset($this->presets[$preset])) {
                    $all = array_merge($all, $this->presets[$preset]);
                }
            }
        }

        return array_merge($all, $params);
    }
public function getAllParams(array $params)
    {
        $all = $this->defaults;

        if (isset($params['p'])) {
            foreach (explode(',', $params['p']) as $preset) {
                if (isset($this->presets[$preset])) {
                    $all = array_merge($all, $this->presets[$preset]);
                }
            }
        }

        return array_merge($all, $params);
    }
public function getAllParams ( array $ params ) { $ all = $ this -> defaults ; if ( isset ( $ params [ 'p' ] ) ) { foreach ( explode ( ',' , $ params [ 'p' ] ) as $ preset ) { if ( isset ( $ this -> presets [ $ preset ] ) ) { $ all = array_merge ( $ all , $ this -> presets [ $ preset ] ) ; } } } return array_merge ( $ all , $ params ) ; }
Get all image manipulations params, including defaults and presets.
@param  array $params Image manipulation params.
@return array All image manipulation params.
Get all image manipulations params including defaults and presets .