Skip to content

Commit 2077e8b

Browse files
committed
Improve object reuse.
1 parent 6ee4f1d commit 2077e8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/FrontEnd.php

Lines changed: 5 additions & 3 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: Front-end handler (last modified: 2021.09.09).
11+
* This file: Front-end handler (last modified: 2021.10.18).
1212
*/
1313

1414
namespace phpMussel\FrontEnd;
@@ -713,7 +713,8 @@ public function view(string $Page = ''): void
713713
/** phpMussel branch latest stable. */
714714
$FE['info_phpmussel_branch'] = $this->Loader->L10N->getString('response_error');
715715
} else {
716-
$RemoteYAMLphpMusselArray = (new \Maikuolan\Common\YAML($RemoteYAMLphpMussel))->Data;
716+
$RemoteYAMLphpMusselArray = [];
717+
$this->Loader->YAML->process($RemoteYAMLphpMussel, $RemoteYAMLphpMusselArray);
717718

718719
/** phpMussel latest stable. */
719720
$FE['info_phpmussel_stable'] = empty($RemoteYAMLphpMusselArray['Stable']) ?
@@ -753,7 +754,8 @@ public function view(string $Page = ''): void
753754
/** PHP branch latest stable. */
754755
$FE['info_php_branch'] = $this->Loader->L10N->getString('response_error');
755756
} else {
756-
$RemoteYamlPhpArray = (new \Maikuolan\Common\YAML($RemoteYamlPHP))->Data;
757+
$RemoteYamlPhpArray = [];
758+
$this->Loader->YAML->process($RemoteYamlPHP, $RemoteYamlPhpArray);
757759

758760
/** PHP latest stable. */
759761
$FE['info_php_stable'] = empty($RemoteYamlPhpArray['Stable']) ?

0 commit comments

Comments
 (0)