Skip to content

Commit 45c8940

Browse files
committed
Added changes for phpcs and unit test case fixes AC-12479
1 parent 1b4ef11 commit 45c8940

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/code/Magento/CheckoutAgreements/Model/AgreementsConfigProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\CheckoutAgreements\Model;
77

@@ -96,11 +96,12 @@ protected function getAgreementsConfig()
9696
$agreementConfiguration['isEnabled'] = (bool)($isAgreementsEnabled && count($agreementsList) > 0);
9797

9898
foreach ($agreementsList as $agreement) {
99+
$isAgreementHtmlType = $agreement->getIsHtml();
99100
$agreementConfiguration['agreements'][] = [
100-
'content' => $agreement->getIsHtml()
101+
'content' => $isAgreementHtmlType
101102
? $agreement->getContent()
102103
: nl2br($this->escaper->escapeHtml($agreement->getContent())),
103-
'checkboxText' => $agreement->getIsHtml()
104+
'checkboxText' => $isAgreementHtmlType
104105
? $agreement->getCheckboxText()
105106
: $this->escaper->escapeHtml($agreement->getCheckboxText()),
106107
'mode' => $agreement->getMode(),

0 commit comments

Comments
 (0)