Skip to content

Commit

Permalink
Merge branch 'php8/5.0.50' into php8/5.0.51
Browse files Browse the repository at this point in the history
  • Loading branch information
stentrop committed Jun 29, 2022
2 parents cfc40ae + 10e8355 commit 440cd77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Wizard/ShopWizard/Services/DefaultSettingsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ public function hasInactivePaymentMethod(): bool
*/
public function getPluginPaymentMethodsRegistered():array
{

$paymentMethods = $this->paymentRepository->allPluginPaymentMethods()->all();
$paymentMethods = $this->paymentRepository->allPluginPaymentMethods();
$paymentMethodIds = [];
foreach ($paymentMethods as $paymentMethod) {
$paymentMethodIds[] = $paymentMethod->id;
Expand All @@ -159,7 +158,7 @@ public function getPluginPaymentMethodsRegistered():array
$paymentMethodContainer = pluginApp(PaymentMethodContainer::class);

$pluginPaymentMethodsRegistered = [];
if (is_array($paymentMethods) && count($paymentMethods)) {
if (count($paymentMethods)) {
foreach ($paymentMethods as $paymentMethod) {
$registeringKey = $paymentMethod->pluginKey . '::' . $paymentMethod->paymentKey;
if ($paymentMethodContainer->isRegistered($registeringKey)) {
Expand Down

0 comments on commit 440cd77

Please sign in to comment.