protected static function unifyParams($type, $field, $default = '')
    {
        $data = array_column(self::$data[$type], $field);

        switch ($field) {
            case 'attr':
            case 'footer':
            case 'version':
                foreach ($data as $value) {
                    if ($data[0] !== $value) {
                        return $default;
                    }
                }
                return (isset($data[0]) && $data[0]) ? $data[0] : $default;
                
            default:
                $params = [];
                foreach ($data as $value) {
                    $params = array_merge($params, $value);
                }

                return array_unique($params);
        }
    }
protected static function unifyParams($type, $field, $default = '')
    {
        $data = array_column(self::$data[$type], $field);

        switch ($field) {
            case 'attr':
            case 'footer':
            case 'version':
                foreach ($data as $value) {
                    if ($data[0] !== $value) {
                        return $default;
                    }
                }
                return (isset($data[0]) && $data[0]) ? $data[0] : $default;
                
            default:
                $params = [];
                foreach ($data as $value) {
                    $params = array_merge($params, $value);
                }

                return array_unique($params);
        }
    }
protected static function unifyParams ( $ type , $ field , $ default = '' ) { $ data = array_column ( self :: $ data [ $ type ] , $ field ) ; switch ( $ field ) { case 'attr' : case 'footer' : case 'version' : foreach ( $ data as $ value ) { if ( $ data [ 0 ] !== $ value ) { return $ default ; } } return ( isset ( $ data [ 0 ] ) && $ data [ 0 ] ) ? $ data [ 0 ] : $ default ; default : $ params = [ ] ; foreach ( $ data as $ value ) { $ params = array_merge ( $ params , $ value ) ; } return array_unique ( $ params ) ; } }
Obtain all the parameters of a particular field and unify them.

@since 1.1.5

@param string $type    → script|style
@param string $field   → field to unify
@param string $default → default param

@return array → unified parameters
Obtain all the parameters of a particular field and unify them .