@@ -61,7 +61,7 @@ |
||
61 | 61 | * We've checked if there were no messages in the current session |
62 | 62 | * because the session then needs to stay open to allow the messages |
63 | 63 | * to be removed after loading them |
64 | - */ |
|
64 | + */ |
|
65 | 65 | if ($hasMessages === 0 ) { |
66 | 66 | $genericSession->writeClose(); |
67 | 67 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | */ |
51 | 51 | $hasMessages = 0; |
52 | 52 | foreach ($additionalSessions as $session) { |
53 | - if ($session instanceOf \Magento\Framework\Message\Session){ |
|
53 | + if ($session instanceOf \Magento\Framework\Message\Session) { |
|
54 | 54 | // @param \Magento\Framework\Message\Collection $messageCollection |
55 | - foreach ($session->getData() as $messageCollection){ |
|
55 | + foreach ($session->getData() as $messageCollection) { |
|
56 | 56 | $hasMessages += count($messageCollection->getItems()); |
57 | 57 | } |
58 | 58 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * because the session then needs to stay open to allow the messages |
63 | 63 | * to be removed after loading them |
64 | 64 | */ |
65 | - if ($hasMessages === 0 ) { |
|
65 | + if ($hasMessages === 0) { |
|
66 | 66 | $genericSession->writeClose(); |
67 | 67 | } |
68 | 68 | } |