debug/handlers/Exception.php
protected function compileList(array &$list, array $delegates)
    {
        $return = [];

        foreach ($list as $name) {
            $return[] = preg_grep('/'.$name.'/', $delegates);
        }

        return call_user_func_array('array_merge', $return);
    }
protected function compileList(array &$list, array $delegates)
    {
        $return = [];

        foreach ($list as $name) {
            $return[] = preg_grep('/'.$name.'/', $delegates);
        }

        return call_user_func_array('array_merge', $return);
    }
protected function compileList ( array & $ list , array $ delegates ) { $ return = [ ] ; foreach ( $ list as $ name ) { $ return [ ] = preg_grep ( '/' . $ name . '/' , $ delegates ) ; } return call_user_func_array ( 'array_merge' , $ return ) ; }
Compiles the given black-or-white-list based on the given Delegate names, ie. run regex matches against
the Delegate names.

@param   array   &$list      Either $this->blacklist or $this->whitelist.
@param   array   $delegates  An array of Delegate names that should be considered.
@return  array               The compiled List.
Compiles the given black - or - white - list based on the given Delegate names ie . run regex matches against the Delegate names .