protected function appendRequiredPlugins(array $plugins, array $result)
    {
        foreach ((array) array_get($result, 'require') as $plugin) {
            if (
                ($name = array_get($plugin, 'code')) &&
                ($hash = array_get($plugin, 'hash')) &&
                !PluginManager::instance()->hasPlugin($name)
            ) {
                $plugins[$name] = $hash;
            }
        }

        return $plugins;
    }
protected function appendRequiredPlugins(array $plugins, array $result)
    {
        foreach ((array) array_get($result, 'require') as $plugin) {
            if (
                ($name = array_get($plugin, 'code')) &&
                ($hash = array_get($plugin, 'hash')) &&
                !PluginManager::instance()->hasPlugin($name)
            ) {
                $plugins[$name] = $hash;
            }
        }

        return $plugins;
    }
protected function appendRequiredPlugins ( array $ plugins , array $ result ) { foreach ( ( array ) array_get ( $ result , 'require' ) as $ plugin ) { if ( ( $ name = array_get ( $ plugin , 'code' ) ) && ( $ hash = array_get ( $ plugin , 'hash' ) ) && ! PluginManager :: instance ( ) -> hasPlugin ( $ name ) ) { $ plugins [ $ name ] = $ hash ; } } return $ plugins ; }
Adds require plugin codes to the collection based on a result.
@param array $plugins
@param array $result
@return array
Adds require plugin codes to the collection based on a result .