Minify_JS_ClosureCompiler::buildPostBody PHP Method

buildPostBody() protected method

Build a POST request body
protected buildPostBody ( string $js, boolean $returnErrors = false ) : string
$js string JavaScript code
$returnErrors boolean
return string
    protected function buildPostBody($js, $returnErrors = false)
    {
        return http_build_query(array_merge(self::$DEFAULT_OPTIONS, $this->additionalOptions, array('js_code' => $js, 'output_info' => $returnErrors ? 'errors' : 'compiled_code')), null, '&');
    }