From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- vendor/maxmind-db/reader/autoload.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'vendor/maxmind-db/reader/autoload.php') diff --git a/vendor/maxmind-db/reader/autoload.php b/vendor/maxmind-db/reader/autoload.php index c79126f..7dab1eb 100644 --- a/vendor/maxmind-db/reader/autoload.php +++ b/vendor/maxmind-db/reader/autoload.php @@ -1,5 +1,7 @@ __DIR__ . '/src/MaxMind/Db/']; foreach ($namespace_map as $prefix => $dir) { - /* First swap out the namespace prefix with a directory... */ + // First swap out the namespace prefix with a directory... $path = str_replace($prefix, $dir, $class); - /* replace the namespace separator with a directory separator... */ + // replace the namespace separator with a directory separator... $path = str_replace('\\', '/', $path); - /* and finally, add the PHP file extension to the result. */ - $path = $path . '.php'; + // and finally, add the PHP file extension to the result. + $path .= '.php'; - /* $path should now contain the path to a PHP file defining $class */ + // $path should now contain the path to a PHP file defining $class if (file_exists($path)) { include $path; } -- cgit v1.2.3