@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | protected $form; |
| 17 | 17 | |
| 18 | 18 | /** @var array */ |
| 19 | - protected $possibleOrigins = []; |
|
| 19 | + protected $possibleOrigins = [ ]; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var ParameterBagInterface |
@@ -80,17 +80,17 @@ discard block |
||
| 80 | 80 | $this->possibleOrigins = explode(' ', $this->params->get('pwc.conversation.possible_origins')); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - $this->possibleOrigins[] = 'https://'.$request->getHost(); |
|
| 84 | - $this->possibleOrigins[] = 'http://'.$request->getHost(); |
|
| 83 | + $this->possibleOrigins[ ] = 'https://'.$request->getHost(); |
|
| 84 | + $this->possibleOrigins[ ] = 'http://'.$request->getHost(); |
|
| 85 | 85 | // just for dev |
| 86 | - $this->possibleOrigins[] = 'http://'.$request->getHost().':8000'; |
|
| 87 | - $this->possibleOrigins[] = 'http://'.$request->getHost().':8001'; |
|
| 88 | - $this->possibleOrigins[] = 'http://'.$request->getHost().':8002'; |
|
| 86 | + $this->possibleOrigins[ ] = 'http://'.$request->getHost().':8000'; |
|
| 87 | + $this->possibleOrigins[ ] = 'http://'.$request->getHost().':8001'; |
|
| 88 | + $this->possibleOrigins[ ] = 'http://'.$request->getHost().':8002'; |
|
| 89 | 89 | |
| 90 | 90 | if ($this->params->has('pwc.apps')) { |
| 91 | 91 | foreach ($this->params->get('pwc.apps') as $app) { |
| 92 | - foreach ($app['hosts'] as $host) { |
|
| 93 | - $this->possibleOrigins[] = 'https://'.$host; |
|
| 92 | + foreach ($app[ 'hosts' ] as $host) { |
|
| 93 | + $this->possibleOrigins[ ] = 'https://'.$host; |
|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | } |