From 1adabfe043d2609be2f345f4f25b4136d308a4eb Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 7 May 2022 12:51:32 +0900 Subject: [PATCH] refactor: remove realpath() No need to use it. --- public/index.php | 4 ++-- spark | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.php b/public/index.php index 65dbf4880b..2a67ce232b 100644 --- a/public/index.php +++ b/public/index.php @@ -22,14 +22,14 @@ chdir(__DIR__); $pathsConfig = FCPATH . '../app/Config/Paths.php'; // ^^^ Change this if you move your application folder -require realpath($pathsConfig) ?: $pathsConfig; +require $pathsConfig; $paths = new Config\Paths(); // Location of the framework bootstrap file. $bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php'; -require realpath($bootstrap) ?: $bootstrap; +require $bootstrap; /* * --------------------------------------------------------------- diff --git a/spark b/spark index 80c4cc166b..3852706cac 100755 --- a/spark +++ b/spark @@ -51,7 +51,7 @@ define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR) $pathsConfig = 'app/Config/Paths.php'; // ^^^ Change this line if you move your application folder -require realpath($pathsConfig) ?: $pathsConfig; +require $pathsConfig; $paths = new Config\Paths(); @@ -60,7 +60,7 @@ chdir(FCPATH); $bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php'; -require realpath($bootstrap) ?: $bootstrap; +require $bootstrap; $app = Services::codeigniter(); $app->initialize();