Skip to content

Commit fb5a9d1

Browse files
committed
fixes style
1 parent 0ab520a commit fb5a9d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/code/Magento/CacheInvalidate/Model/PurgeCache.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ private function sendPurgeRequestToServers($socketAdapter, $servers, $formattedT
138138
}
139139
}
140140

141-
if($errorCount = count($unresponsiveServerError) > 0) {
141+
$errorCount = count($unresponsiveServerError);
142142

143-
$loggerMessage = implode(" ",$unresponsiveServerError);
143+
if ($errorCount > 0) {
144144

145-
if($errorCount == count($servers)) {
145+
$loggerMessage = implode(" ", $unresponsiveServerError);
146+
147+
if ($errorCount == count($servers)) {
146148
$this->logger->critical('No cache server(s) could be purged ' . $loggerMessage, compact('server',
147149
'formattedTagsChunk'));
148150
} else {

0 commit comments

Comments
 (0)