Test Setup Failed
Push — hotfix/add-missing-sort-2.0.x ( 25e395 )
by
unknown
02:10
created
src/Zicht/Bundle/UrlBundle/Url/StaticProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,6 +61,6 @@
 block discarded – undo
61 61
      */
62 62
     public function url($object, array $options = array())
63 63
     {
64
-        return $this->router->getContext()->getBaseUrl() . '/' . ltrim($this->refs[$object], '/');
64
+        return $this->router->getContext()->getBaseUrl().'/'.ltrim($this->refs[$object], '/');
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/DelegatingProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         $objectType = is_object($object)
69 69
             ? get_class($object)
70
-            : (gettype($object) . ' (' . var_export($object, true) . ')');
70
+            : (gettype($object).' ('.var_export($object, true).')');
71 71
 
72 72
         throw new UnsupportedException("Can not render url for {$objectType}");
73 73
     }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/Rewriter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,19 +88,19 @@  discard block
 block discarded – undo
88 88
 
89 89
             // don't rewrite this.
90 90
             if (isset($parts['user']) || isset($parts['password'])) {
91
-                $ret[$url]=  $url;
91
+                $ret[$url] = $url;
92 92
                 continue;
93 93
             }
94 94
 
95 95
             $rewritten = '';
96 96
             if (isset($parts['scheme'])) {
97
-                $rewritten .= $parts['scheme'] . ':';
97
+                $rewritten .= $parts['scheme'].':';
98 98
             }
99 99
             if (isset($parts['host'])) {
100
-                $rewritten .= '//' . $parts['host'];
100
+                $rewritten .= '//'.$parts['host'];
101 101
             }
102 102
             if (isset($parts['port'])) {
103
-                $rewritten .= ':' . $parts['port'];
103
+                $rewritten .= ':'.$parts['port'];
104 104
             }
105 105
             if (isset($parts['path'])) {
106 106
                 if (isset($mappings[$parts['path']])) {
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
                 }
113 113
             }
114 114
             if (isset($parts['params'])) {
115
-                $rewritten .= '/' . $parts['params'];
115
+                $rewritten .= '/'.$parts['params'];
116 116
             }
117 117
             if (isset($parts['query'])) {
118
-                $rewritten .= '?' . $parts['query'];
118
+                $rewritten .= '?'.$parts['query'];
119 119
             }
120 120
             if (isset($parts['fragment'])) {
121
-                $rewritten .= '#' . $parts['fragment'];
121
+                $rewritten .= '#'.$parts['fragment'];
122 122
             }
123 123
 
124 124
             $ret[$url] = $rewritten;
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         foreach ($this->rewrite(array_keys($matchedGroups), $mode) as $from => $to) {
205 205
             if (isset($matchedGroups[$from]) && $from !== $to) {
206 206
                 foreach ($matchedGroups[$from] as list($source, $prefix, $oldUrl, $suffix)) {
207
-                    $replacements[$source] = $prefix . $to . $suffix;
207
+                    $replacements[$source] = $prefix.$to.$suffix;
208 208
                 }
209 209
             }
210 210
         }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/RequestAwareProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         parent::__construct();
24 24
 
25 25
         $this->baseUrl = $request->getBaseUrl();
26
-        $this->prefix = $request->getSchemeAndHttpHost() . $this->baseUrl;
26
+        $this->prefix = $request->getSchemeAndHttpHost().$this->baseUrl;
27 27
         $this->baseUrlLen = strlen($this->baseUrl);
28 28
     }
29 29
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         }
40 40
         $ret = ltrim($ret, '/');
41 41
         if (!empty($options['absolute'])) {
42
-            $ret = $this->prefix . '/' . $ret;
42
+            $ret = $this->prefix.'/'.$ret;
43 43
         }
44 44
         return $ret;
45 45
     }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Aliasing/DefaultAliasingStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@
 block discarded – undo
43 43
             }
44 44
         }
45 45
         if (!is_string($subject)) {
46
-            throw new \InvalidArgumentException("Expected a string or object as subject, got " . gettype($subject));
46
+            throw new \InvalidArgumentException("Expected a string or object as subject, got ".gettype($subject));
47 47
         }
48 48
 
49 49
         if ($alias = $this->toAlias($subject)) {
50
-            return $this->basePath . $alias;
50
+            return $this->basePath.$alias;
51 51
         }
52 52
         return null;
53 53
     }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Aliasing/Mapper/HtmlMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             $pattern = sprintf('!(<%s\b[^>]+\b(?:%s)=")([^"]+)(")!', $tagName, join('|', $attributes));
62 62
             if (preg_match_all($pattern, $html, $matches, PREG_SET_ORDER)) {
63 63
                 foreach ($matches as $match) {
64
-                    $map[$match[2]][]= $match;
64
+                    $map[$match[2]][] = $match;
65 65
                 }
66 66
             }
67 67
         }
Please login to merge, or discard this patch.
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.