source/Core/NamespaceInformationProvider.php
private static function classBelongsToNamespace($className, $namespaces)
    {
        $belongsToNamespace = false;
        $check = array_values($namespaces);
        $lcClassName = strtolower(ltrim($className, '\\'));

        foreach ($check as $namespace) {
            if (false !== strpos($lcClassName, strtolower($namespace))) {
                $belongsToNamespace = true;
                continue;
            }
        }
        return $belongsToNamespace;
    }
private static function classBelongsToNamespace($className, $namespaces)
    {
        $belongsToNamespace = false;
        $check = array_values($namespaces);
        $lcClassName = strtolower(ltrim($className, '\\'));

        foreach ($check as $namespace) {
            if (false !== strpos($lcClassName, strtolower($namespace))) {
                $belongsToNamespace = true;
                continue;
            }
        }
        return $belongsToNamespace;
    }
private static function classBelongsToNamespace ( $ className , $ namespaces ) { $ belongsToNamespace = false ; $ check = array_values ( $ namespaces ) ; $ lcClassName = strtolower ( ltrim ( $ className , '\\' ) ) ; foreach ( $ check as $ namespace ) { if ( false !== strpos ( $ lcClassName , strtolower ( $ namespace ) ) ) { $ belongsToNamespace = true ; continue ; } } return $ belongsToNamespace ; }
Check if given class belongs to one of the supplied namespaces.

@param string $className
@param array  $namespaces

@return bool
Check if given class belongs to one of the supplied namespaces .