src/CommandPool.php
private static function cmpCallback(array &$config, $name, array &$results)
    {
        if (!isset($config[$name])) {
            $config[$name] = function ($v, $k) use (&$results) {
                $results[$k] = $v;
            };
        } else {
            $currentFn = $config[$name];
            $config[$name] = function ($v, $k) use (&$results, $currentFn) {
                $currentFn($v, $k);
                $results[$k] = $v;
            };
        }
    }
private static function cmpCallback(array &$config, $name, array &$results)
    {
        if (!isset($config[$name])) {
            $config[$name] = function ($v, $k) use (&$results) {
                $results[$k] = $v;
            };
        } else {
            $currentFn = $config[$name];
            $config[$name] = function ($v, $k) use (&$results, $currentFn) {
                $currentFn($v, $k);
                $results[$k] = $v;
            };
        }
    }
private static function cmpCallback ( array & $ config , $ name , array & $ results ) { if ( ! isset ( $ config [ $ name ] ) ) { $ config [ $ name ] = function ( $ v , $ k ) use ( & $ results ) { $ results [ $ k ] = $ v ; } ; } else { $ currentFn = $ config [ $ name ] ; $ config [ $ name ] = function ( $ v , $ k ) use ( & $ results , $ currentFn ) { $ currentFn ( $ v , $ k ) ; $ results [ $ k ] = $ v ; } ; } }
Adds an onFulfilled or onRejected callback that aggregates results into
an array. If a callback is already present, it is replaced with the
composed function.

@param array $config
@param       $name
@param array $results
Adds an onFulfilled or onRejected callback that aggregates results into an array . If a callback is already present it is replaced with the composed function .