public static function classExists($className, $namespace)
    {
        if (class_exists($className)) {
            return $className;
        }

        // add namespace
        $className = sprintf('%s%s', static::getFormatNamespace($namespace, true), $className);

        if (class_exists($className)) {
            return $className;
        }

        return false;
    }
public static function classExists($className, $namespace)
    {
        if (class_exists($className)) {
            return $className;
        }

        // add namespace
        $className = sprintf('%s%s', static::getFormatNamespace($namespace, true), $className);

        if (class_exists($className)) {
            return $className;
        }

        return false;
    }
public static function classExists ( $ className , $ namespace ) { if ( class_exists ( $ className ) ) { return $ className ; } // add namespace $ className = sprintf ( '%s%s' , static :: getFormatNamespace ( $ namespace , true ) , $ className ) ; if ( class_exists ( $ className ) ) { return $ className ; } return false ; }
checks of a class exists on the global scope try the namespace.

@param $className

@return string

@throws ClassNotFoundException

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
checks of a class exists on the global scope try the namespace .