protected function defineRenderToUse(array $renderConfig)
    {
        //Check enabled
        if ($renderConfig['enabled'] === false) {
            return false;
        }
        
        //The cli render if cli mode
        if (PHP_SAPI === 'cli' && isset($renderConfig['cli'])) {
            return $renderConfig['cli'];
        }
        
        //The default render or cli if cli mode and no cli render configured
        if (isset($renderConfig['default'])) {
            return $renderConfig['default'];
        }
        
        return false;
    }
protected function defineRenderToUse(array $renderConfig)
    {
        //Check enabled
        if ($renderConfig['enabled'] === false) {
            return false;
        }
        
        //The cli render if cli mode
        if (PHP_SAPI === 'cli' && isset($renderConfig['cli'])) {
            return $renderConfig['cli'];
        }
        
        //The default render or cli if cli mode and no cli render configured
        if (isset($renderConfig['default'])) {
            return $renderConfig['default'];
        }
        
        return false;
    }
protected function defineRenderToUse ( array $ renderConfig ) { //Check enabled if ( $ renderConfig [ 'enabled' ] === false ) { return false ; } //The cli render if cli mode if ( PHP_SAPI === 'cli' && isset ( $ renderConfig [ 'cli' ] ) ) { return $ renderConfig [ 'cli' ] ; } //The default render or cli if cli mode and no cli render configured if ( isset ( $ renderConfig [ 'default' ] ) ) { return $ renderConfig [ 'default' ] ; } return false ; }
Find the render to use with the config
If cli render is not define, it's use the default render.

@param array $renderConfig : Render infos from config

@return boolean|array : Render to use
Boolean : false if is no enabled or if no render is defined
Array : The render to use
Find the render to use with the config If cli render is not define it s use the default render .