private function searchNamespaces($paths, $class, $truncate)
    {
        foreach ($paths as $namespace => $directories) {
            $canonized = $this->canonizeClass($namespace, $class, $truncate);

            if ($canonized && $file = $this->searchDirectories($directories, $canonized)) {
                return $file;
            }
        }

        return false;
    }
private function searchNamespaces($paths, $class, $truncate)
    {
        foreach ($paths as $namespace => $directories) {
            $canonized = $this->canonizeClass($namespace, $class, $truncate);

            if ($canonized && $file = $this->searchDirectories($directories, $canonized)) {
                return $file;
            }
        }

        return false;
    }
private function searchNamespaces ( $ paths , $ class , $ truncate ) { foreach ( $ paths as $ namespace => $ directories ) { $ canonized = $ this -> canonizeClass ( $ namespace , $ class , $ truncate ) ; if ( $ canonized && $ file = $ this -> searchDirectories ( $ directories , $ canonized ) ) { return $ file ; } } return false ; }
Searches for the class file from the namespaces that apply to the class.
@param array $paths All the namespace specific paths
@param string $class Canonized full class name
@param bool $truncate True to remove the namespace from the path
@return string|false Path to the class file or false if not found
Searches for the class file from the namespaces that apply to the class .