private function searchFor($name, $withExtension)
    {
        $found = false;
        $fileName = $name;

        foreach (self::$paths as $path) {
            $fileName = "{$path}/$withExtension";
            if (is_file($fileName)) {
                $found = true;
                break;
            }
        }

        return [$found, $fileName];
    }
private function searchFor($name, $withExtension)
    {
        $found = false;
        $fileName = $name;

        foreach (self::$paths as $path) {
            $fileName = "{$path}/$withExtension";
            if (is_file($fileName)) {
                $found = true;
                break;
            }
        }

        return [$found, $fileName];
    }
private function searchFor ( $ name , $ withExtension ) { $ found = false ; $ fileName = $ name ; foreach ( self :: $ paths as $ path ) { $ fileName = "{$path}/$withExtension" ; if ( is_file ( $ fileName ) ) { $ found = true ; break ; } } return [ $ found , $ fileName ] ; }
Search for name in the list of paths

@param string $name
@param string $withExtension

@return array
Search for name in the list of paths