public static function setOption($option, $value)
    {
        $that = self::getInstance();

        if (! is_array($value)) {
            return $that->settings[$option] = $value;
        }

        if (array_key_exists($option, $that->settings)) {
            $that->settings[$option] = array_merge_recursive(
                is_array($that->settings[$option]) ? $that->settings[$option] : [],
                $value
            );
        } else {
            foreach ($value as $key => $value) {
                $that->settings[$option][$key] = $value;
            }
        }

        return $that->settings[$option];
    }
public static function setOption($option, $value)
    {
        $that = self::getInstance();

        if (! is_array($value)) {
            return $that->settings[$option] = $value;
        }

        if (array_key_exists($option, $that->settings)) {
            $that->settings[$option] = array_merge_recursive(
                is_array($that->settings[$option]) ? $that->settings[$option] : [],
                $value
            );
        } else {
            foreach ($value as $key => $value) {
                $that->settings[$option][$key] = $value;
            }
        }

        return $that->settings[$option];
    }
public static function setOption ( $ option , $ value ) { $ that = self :: getInstance ( ) ; if ( ! is_array ( $ value ) ) { return $ that -> settings [ $ option ] = $ value ; } if ( array_key_exists ( $ option , $ that -> settings ) ) { $ that -> settings [ $ option ] = array_merge_recursive ( is_array ( $ that -> settings [ $ option ] ) ? $ that -> settings [ $ option ] : [ ] , $ value ) ; } else { foreach ( $ value as $ key => $ value ) { $ that -> settings [ $ option ] [ $ key ] = $ value ; } } return $ that -> settings [ $ option ] ; }
Define new configuration settings.

@since 1.1.2

@param string $option → option name
@param mixed  $value  → value/s

@return mixed
Define new configuration settings .