@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function processAliasing($content, $mode, Rewriter $rewriter) |
| 33 | 33 | { |
| 34 | - $options = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT; |
|
| 34 | + $options = JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_AMP|JSON_HEX_QUOT; |
|
| 35 | 35 | |
| 36 | 36 | // Json is escaped by default we remove the escaping to replace the url. The escaping is added after |
| 37 | 37 | $content = json_encode(json_decode($content, false, 512, $options), JSON_UNESCAPED_SLASHES); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | $groups = []; |
| 61 | 61 | foreach ($matches as $match) { |
| 62 | - $groups[$match[2]][]= $match; |
|
| 62 | + $groups[$match[2]][] = $match; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return $rewriter->rewriteMatches($content, $mode, $groups); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | if (null !== $relative && null !== ($url = $this->aliasing->hasPublicAlias($relative))) { |
| 91 | - $rewrite = $absolutePrefix . $url . $suffix; |
|
| 91 | + $rewrite = $absolutePrefix.$url.$suffix; |
|
| 92 | 92 | $response->headers->set('location', $rewrite); |
| 93 | 93 | } |
| 94 | 94 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $request->query->add($parser->parseUri(join('/', array_reverse($params)))); |
| 178 | 178 | |
| 179 | 179 | if (!$this->aliasing->hasInternalAlias($publicUrl, false)) { |
| 180 | - $this->rewriteRequest($event, $publicUrl . $queryString); |
|
| 180 | + $this->rewriteRequest($event, $publicUrl.$queryString); |
|
| 181 | 181 | |
| 182 | 182 | return; |
| 183 | 183 | } |