Passed
Push — master ( 99327a...fe2033 )
by Dev
14:50
created
src/Controller/ConversationFormController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,9 +72,9 @@
 block discarded – undo
72 72
 
73 73
         if ($this->params->has('pwc.static.domain')) {
74 74
             $possibleOrigins = $this->params->has('pwc.conversation.possible_origins') ?
75
-                    explode(' ', $this->params->get('pwc.conversation.possible_origins')) : [];
76
-            $possibleOrigins[] = 'https://'.$request->getHost();
77
-            $possibleOrigins[] = 'https://'.$this->params->get('pwc.static.domain');
75
+                    explode(' ', $this->params->get('pwc.conversation.possible_origins')) : [ ];
76
+            $possibleOrigins[ ] = 'https://'.$request->getHost();
77
+            $possibleOrigins[ ] = 'https://'.$this->params->get('pwc.static.domain');
78 78
 
79 79
             if (in_array($request->headers->get('origin'), $possibleOrigins)) {
80 80
                 $origin = $request->headers->get('origin');
Please login to merge, or discard this patch.