Resque\Logger\Handler\Connector::matches PHP Method

matches() private method

Performs a pattern match on a string and returns just the named matches or false if no match
private matches ( $pattern, $subject ) : array | false
return array | false
    private function matches($pattern, $subject)
    {
        if (preg_match($pattern, $subject, $matches)) {
            $args = array();
            foreach ($matches as $key => $value) {
                if (!is_int($key)) {
                    $args[$key] = $value;
                }
            }
            return $args;
        }
        return false;
    }