Skip to content

Commit a3d86cd

Browse files
committed
Cleaning some gaps
1 parent 0b968b8 commit a3d86cd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

app/code/Magento/PageCache/Model/Config.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,18 @@ protected function _getReplacements()
199199
*/
200200
protected function _getAccessList()
201201
{
202-
$result = '';
203-
$tpl = " \"%s\";";
202+
$tpl = ' "%s";';
204203
$accessList = $this->_scopeConfig->getValue(self::XML_VARNISH_PAGECACHE_ACCESS_LIST);
205204
if (!empty($accessList)) {
206-
$result = [];
205+
$ipsList = [];
207206
$ips = explode(',', $accessList);
208207
foreach ($ips as $ip) {
209-
$result[] = sprintf($tpl, trim($ip));
208+
$ipsList[] = sprintf($tpl, trim($ip));
210209
}
211-
return implode("\n", $result);
210+
return implode('\n', $ipsList);
212211
}
213-
return $result;
212+
213+
return '';
214214
}
215215

216216
/**

app/code/Magento/Sales/Model/Order/Email/SenderBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,9 @@ public function sendCopyTo()
8585
$copyTo = $this->identityContainer->getEmailCopyTo();
8686

8787
if (!empty($copyTo) && $this->identityContainer->getCopyMethod() == 'copy') {
88+
$this->configureEmailTemplate();
8889
foreach ($copyTo as $email) {
89-
$this->configureEmailTemplate();
90-
9190
$this->transportBuilder->addTo($email);
92-
9391
$transport = $this->transportBuilder->getTransport();
9492
$transport->sendMessage();
9593
}

0 commit comments

Comments
 (0)