Passed
Pull Request — master (#11)
by
unknown
06:09
created
src/Plugin/SectionLoadControllerPlugin.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.