src/Classes/BaseChart.php
public function formatPlugins(bool $strict = false, bool $noBraces = false)
    {
        if (!$strict && count($this->plugins) === 0) {
            return '';
        }

        $plugins = str_replace('"', '', Encoder::encode($this->plugins));

        return $noBraces ? substr($plugins, 1, -1) : $plugins;
    }
public function formatPlugins(bool $strict = false, bool $noBraces = false)
    {
        if (!$strict && count($this->plugins) === 0) {
            return '';
        }

        $plugins = str_replace('"', '', Encoder::encode($this->plugins));

        return $noBraces ? substr($plugins, 1, -1) : $plugins;
    }
public function formatPlugins ( bool $ strict = false , bool $ noBraces = false ) { if ( ! $ strict && count ( $ this -> plugins ) === 0 ) { return '' ; } $ plugins = str_replace ( '"' , '' , Encoder :: encode ( $ this -> plugins ) ) ; return $ noBraces ? substr ( $ plugins , 1 , - 1 ) : $ plugins ; }
Formats the plugins options.

@param bool $strict

@return string
Formats the plugins options .