public function scriptEnd()
    {
        $buffer = ob_get_clean();
        $options = $this->_scriptBlockOptions;
        $this->_scriptBlockOptions = [];

        return $this->scriptBlock($buffer, $options);
    }
public function scriptEnd()
    {
        $buffer = ob_get_clean();
        $options = $this->_scriptBlockOptions;
        $this->_scriptBlockOptions = [];

        return $this->scriptBlock($buffer, $options);
    }
public function scriptEnd ( ) { $ buffer = ob_get_clean ( ) ; $ options = $ this -> _scriptBlockOptions ; $ this -> _scriptBlockOptions = [ ] ; return $ this -> scriptBlock ( $ buffer , $ options ) ; }
End a Buffered section of JavaScript capturing.
Generates a script tag inline or appends to specified view block depending on
the settings used when the scriptBlock was started

@return string|null Depending on the settings of scriptStart() either a script tag or null
@link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-inline-javascript-blocks
End a Buffered section of JavaScript capturing . Generates a script tag inline or appends to specified view block depending on the settings used when the scriptBlock was started