Passed
Pull Request — master (#12)
by Muhammed
05:40
created
src/Zicht/Bundle/UrlBundle/Aliasing/Mapper/JsonHalMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Aliasing/Mapper/AbstractMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Aliasing/Listener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.