src/Helpers/Container.php
protected function tryNsInstance($class, $subNamespace, $namespace)
    {
        $fqClass = $this->getFqClass($class, $subNamespace, $namespace);
        $fileName = $this->getFileName($fqClass);
        // Checking if the file exists prevents warnings in Magento whose own
        // autoloader logs warnings when a class cannot be loaded.
        return is_readable($fileName) && class_exists($fqClass) ? $fqClass : '';
    }
protected function tryNsInstance($class, $subNamespace, $namespace)
    {
        $fqClass = $this->getFqClass($class, $subNamespace, $namespace);
        $fileName = $this->getFileName($fqClass);
        // Checking if the file exists prevents warnings in Magento whose own
        // autoloader logs warnings when a class cannot be loaded.
        return is_readable($fileName) && class_exists($fqClass) ? $fqClass : '';
    }
protected function tryNsInstance ( $ class , $ subNamespace , $ namespace ) { $ fqClass = $ this -> getFqClass ( $ class , $ subNamespace , $ namespace ) ; $ fileName = $ this -> getFileName ( $ fqClass ) ; // Checking if the file exists prevents warnings in Magento whose own // autoloader logs warnings when a class cannot be loaded. return is_readable ( $ fileName ) && class_exists ( $ fqClass ) ? $ fqClass : '' ; }
Tries to find a class in the given namespace.

@param $class
The class to find.
@param $subNamespace
The sub namespace to add to the namespace.
@param $namespace
The namespace to search in.

@return string
The full name of the class or the empty string if it does not exist in
the given namespace.
Tries to find a class in the given namespace .