Skip to content

Commit 4ee68dc

Browse files
committed
fixing code style and renaming sanitizeConfigurations method
1 parent 7feb68b commit 4ee68dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Loader.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function __construct(
221221

222222
/** The specified vendor directory doesn't exist or isn't readable. */
223223
if (!is_dir($VendorPath) || !is_readable($VendorPath)) {
224-
if (! isset($_SERVER['DOCUMENT_ROOT'], $_SERVER['SCRIPT_NAME'])) {
224+
if (!isset($_SERVER['DOCUMENT_ROOT'], $_SERVER['SCRIPT_NAME'])) {
225225
/** Further safeguards not possible. Generate exception. */
226226
throw new \Exception('Vendor directory is undefined or unreadable.');
227227
}
@@ -289,7 +289,7 @@ public function __construct(
289289
$this->Configuration = parse_ini_file($this->ConfigurationPath, true);
290290

291291
/** Multiline support. */
292-
$this->sanitizeConfigurations();
292+
$this->decodeConfigurations();
293293

294294
} elseif (preg_match('~\.ya?ml$~i', $this->ConfigurationPath)) {
295295
if ($Configuration = $this->readFile($this->ConfigurationPath)) {
@@ -433,10 +433,10 @@ public function __construct(
433433
}
434434

435435
/**
436-
* Method to sanitize the configurations
436+
* Method to decode the configurations
437437
* @return void
438438
*/
439-
private function sanitizeConfigurations() : void
439+
private function decodeConfigurations() : void
440440
{
441441
if (is_array($this->Configuration)) {
442442
foreach ($this->Configuration as $CatKey => &$CatVal) {
@@ -454,8 +454,8 @@ private function sanitizeConfigurations() : void
454454
}
455455
}
456456
}
457-
unset($DirVal, $DirKey, $CatVal, $CatKey);
458457
}
458+
459459
/**
460460
* Destruct the loader.
461461
*

0 commit comments

Comments
 (0)