Skip to content

Commit 126a974

Browse files
committed
change sizeof to count
1 parent 7dbd2cd commit 126a974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Directory/Model/Observer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function scheduledUpdateCurrencyRates()
128128
$importWarnings[] = __('FATAL ERROR:') . ' ' . __('Please specify the correct Import Service.');
129129
}
130130

131-
if (sizeof($errors) > 0) {
131+
if (count($errors) > 0) {
132132
foreach ($errors as $error) {
133133
$importWarnings[] = __('WARNING:') . ' ' . $error;
134134
}
@@ -138,7 +138,7 @@ public function scheduledUpdateCurrencyRates()
138138
self::XML_PATH_ERROR_RECIPIENT,
139139
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
140140
);
141-
if (sizeof($importWarnings) == 0) {
141+
if (count($importWarnings) == 0) {
142142
$this->_currencyFactory->create()->saveRates($rates);
143143
} elseif ($errorRecipient) {
144144
//if $errorRecipient is not set, there is no sense send email to nobody

0 commit comments

Comments
 (0)