protected function encodeOptions(array $options) {
        if (0 === count($options)) {
            return "{}";
        }
        ksort($options);
        $output = json_encode($options, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
        return str_replace("\n", "\n        ", $output);
    }
protected function encodeOptions(array $options) {
        if (0 === count($options)) {
            return "{}";
        }
        ksort($options);
        $output = json_encode($options, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
        return str_replace("\n", "\n        ", $output);
    }
protected function encodeOptions ( array $ options ) { if ( 0 === count ( $ options ) ) { return "{}" ; } ksort ( $ options ) ; $ output = json_encode ( $ options , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ; return str_replace ( "\n" , "\n        " , $ output ) ; }
Encode the options.

@param array $options The options.
@return string Returns the encoded options.
Encode the options .