protected function matchClass($array, $group, $alias, $class)
    {
        $match = false;

        foreach ($array as $test) {
            if ('path' === $group) {
                $match = 0 === strpos($class, $test);
            } else {
                $match = $test . '\\' . $alias === $class;
            }

            if ($match) {
                break;
            }
        }

        return $match;
    }
protected function matchClass($array, $group, $alias, $class)
    {
        $match = false;

        foreach ($array as $test) {
            if ('path' === $group) {
                $match = 0 === strpos($class, $test);
            } else {
                $match = $test . '\\' . $alias === $class;
            }

            if ($match) {
                break;
            }
        }

        return $match;
    }
protected function matchClass ( $ array , $ group , $ alias , $ class ) { $ match = false ; foreach ( $ array as $ test ) { if ( 'path' === $ group ) { $ match = 0 === strpos ( $ class , $ test ) ; } else { $ match = $ test . '\\' . $ alias === $ class ; } if ( $ match ) { break ; } } return $ match ; }
Returns true if a class matches a namespace item

@param array $array
@param string $group
@param string $alias
@param string $class
Returns true if a class matches a namespace item