src/FileLoader.php
protected function findInPaths(array $paths, $group, $mode = null, $exists = false)
    {
        $items = [];

        foreach ($paths as $path) {
            if ($this->fs->exists($file = "{$path}/{$group}.php")) {
                if ($exists) return true;

                $items = array_merge_recursive($this->fs->getRequire($file), $items);
            }

            if ($mode and $this->fs->exists($file = "{$path}/{$mode}/{$group}.php")) {
                if ($exists) return true;

                $items = array_merge_recursive($this->fs->getRequire($file), $items);
            }
        }

        return $items;
    }
protected function findInPaths(array $paths, $group, $mode = null, $exists = false)
    {
        $items = [];

        foreach ($paths as $path) {
            if ($this->fs->exists($file = "{$path}/{$group}.php")) {
                if ($exists) return true;

                $items = array_merge_recursive($this->fs->getRequire($file), $items);
            }

            if ($mode and $this->fs->exists($file = "{$path}/{$mode}/{$group}.php")) {
                if ($exists) return true;

                $items = array_merge_recursive($this->fs->getRequire($file), $items);
            }
        }

        return $items;
    }
protected function findInPaths ( array $ paths , $ group , $ mode = null , $ exists = false ) { $ items = [ ] ; foreach ( $ paths as $ path ) { if ( $ this -> fs -> exists ( $ file = "{$path}/{$group}.php" ) ) { if ( $ exists ) return true ; $ items = array_merge_recursive ( $ this -> fs -> getRequire ( $ file ) , $ items ) ; } if ( $ mode and $ this -> fs -> exists ( $ file = "{$path}/{$mode}/{$group}.php" ) ) { if ( $ exists ) return true ; $ items = array_merge_recursive ( $ this -> fs -> getRequire ( $ file ) , $ items ) ; } } return $ items ; }
Get the path for the specified namespace

@param array $paths
@param string $group
@param string $mode
@param bool $exists
@return string
Get the path for the specified namespace