Skip to content

Commit cab177c

Browse files
committed
Refactoring.
1 parent b1fb932 commit cab177c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Linker.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: PHPMailer-phpMussel linker (last modified: 2021.08.25).
11+
* This file: PHPMailer-phpMussel linker (last modified: 2021.09.05).
1212
*/
1313

1414
namespace phpMussel\PHPMailer;
@@ -41,17 +41,15 @@ public function __construct(\phpMussel\Core\Loader &$Loader)
4141
/** Link the loader to this instance. */
4242
$this->Loader = &$Loader;
4343

44-
/** Load configuration defaults and perform fallbacks. */
44+
/** Load PHPMailer-phpMussel linker configuration defaults and perform fallbacks. */
4545
if (
4646
is_readable($this->AssetsPath . 'config.yml') &&
4747
$Configuration = $this->Loader->readFile($this->AssetsPath . 'config.yml')
4848
) {
4949
$Defaults = [];
50-
$this->Loader->YAML->process($Configuration, $Defaults, 0, true);
51-
if (isset($Defaults)) {
52-
$this->Loader->fallback($Defaults);
53-
$this->Loader->ConfigurationDefaults = array_merge_recursive($this->Loader->ConfigurationDefaults, $Defaults);
54-
}
50+
$this->Loader->YAML->process($Configuration, $Defaults);
51+
$this->Loader->fallback($Defaults);
52+
$this->Loader->ConfigurationDefaults = array_merge_recursive($this->Loader->ConfigurationDefaults, $Defaults);
5553
}
5654

5755
/** Register log paths. */

0 commit comments

Comments
 (0)