From 976df6c8f88cb86ab713528b1c6f2ce3b91f6000 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 2 Jan 2022 16:39:43 +0100 Subject: Rename folder variables to directory --- src/App.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/App.php b/src/App.php index b2c877e..b270b02 100644 --- a/src/App.php +++ b/src/App.php @@ -256,9 +256,9 @@ class App public function buildConfig($formPath) { $config = []; - $currentFolder = $formPath; + $currentDirectory = $formPath; while (true) { - $configFile = $currentFolder . '/config/config.toml'; + $configFile = $currentDirectory . '/config/config.toml'; if (file_exists($configFile)) { $parsedConfig = Toml::parseFile($configFile); @@ -267,11 +267,11 @@ class App $config['api']['keys'] = $apiKeys; } - if (str_ends_with($currentFolder, '/' . basename($_ENV['app']['contentFolderPath'])) || $currentFolder == '/') { + if (str_ends_with($currentDirectory, '/' . basename($_ENV['app']['contentFolderPath'])) || $currentDirectory == '/') { break; } - $currentFolder = dirname($currentFolder); + $currentDirectory = dirname($currentDirectory); } return $config; -- cgit v1.2.3