src/AssetScanner.php
public function find($file)
    {
        $found = false;
        $expanded = $this->_expandPrefix($file);
        if (file_exists($expanded)) {
            return $expanded;
        }
        foreach ($this->_paths as $path) {
            $file = $this->_normalizePath($file, DIRECTORY_SEPARATOR);
            $fullPath = $path . $file;

            if (file_exists($fullPath)) {
                $found = $fullPath;
                break;
            }
        }
        return $found;
    }
public function find($file)
    {
        $found = false;
        $expanded = $this->_expandPrefix($file);
        if (file_exists($expanded)) {
            return $expanded;
        }
        foreach ($this->_paths as $path) {
            $file = $this->_normalizePath($file, DIRECTORY_SEPARATOR);
            $fullPath = $path . $file;

            if (file_exists($fullPath)) {
                $found = $fullPath;
                break;
            }
        }
        return $found;
    }
public function find ( $ file ) { $ found = false ; $ expanded = $ this -> _expandPrefix ( $ file ) ; if ( file_exists ( $ expanded ) ) { return $ expanded ; } foreach ( $ this -> _paths as $ path ) { $ file = $ this -> _normalizePath ( $ file , DIRECTORY_SEPARATOR ) ; $ fullPath = $ path . $ file ; if ( file_exists ( $ fullPath ) ) { $ found = $ fullPath ; break ; } } return $ found ; }
Find a file in the connected paths, and check for its existance.

@param string $file The file you want to find.
@return mixed Either false on a miss, or the full path of the file.
Find a file in the connected paths and check for its existance .