Test Setup Failed
Push — feature/slash-suffixed-url-han... ( 6a2715...c1bf9c )
by
unknown
15:45
created
src/Zicht/Bundle/UrlBundle/Url/AliasSitemapProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         }
51 51
 
52 52
         return array_map(
53
-            function ($url) {
53
+            function($url) {
54 54
                 return ['value' => $url['public_url']];
55 55
             },
56 56
             $urls->getArrayCopy()
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Admin/AliasOverviewType.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
     public function buildView(FormView $view, FormInterface $form, array $options)
62 62
     {
63 63
         parent::buildView($view, $form, $options);
64
-        $aliases =  $this->getUrlAliases($options['record']);
64
+        $aliases = $this->getUrlAliases($options['record']);
65 65
         $view->vars['record'] = $options['record'];
66 66
         $view->vars['url_aliases'] = $aliases;
67 67
         $view->vars['url_aliases_grouped'] = $this->groupByMode($aliases);
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/StaticProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
      */
63 63
     public function url($object, array $options = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
64 64
     {
65
-        return $this->router->getContext()->getBaseUrl() . '/' . ltrim($this->refs[$object], '/');
65
+        return $this->router->getContext()->getBaseUrl().'/'.ltrim($this->refs[$object], '/');
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Aliasing/Listener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 }
104 104
 
105 105
                 if (null !== $relative && null !== ($url = $this->aliasing->hasPublicAlias($relative))) {
106
-                    $rewrite = $absolutePrefix . $url . $suffix;
106
+                    $rewrite = $absolutePrefix.$url.$suffix;
107 107
                     $response->headers->set('location', $rewrite);
108 108
                 }
109 109
             }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                 $request->query->add($parser->parseUri(join('/', array_reverse($params))));
200 200
 
201 201
                 if (!$this->aliasing->hasInternalAlias($publicUrl, false)) {
202
-                    $this->rewriteRequest($event, $publicUrl . $queryString);
202
+                    $this->rewriteRequest($event, $publicUrl.$queryString);
203 203
 
204 204
                     return;
205 205
                 }
@@ -208,12 +208,12 @@  discard block
 block discarded – undo
208 208
 
209 209
         $tryPublicUrls = [$publicUrl => null];
210 210
         if ($queryString !== '') {
211
-            $tryPublicUrls[$publicUrl . $queryString] = null;
211
+            $tryPublicUrls[$publicUrl.$queryString] = null;
212 212
         }
213 213
         if ($this->slashSuffixHandling !== static::SLASH_SUFFIX_ABSTAIN && substr($publicUrl, -1) === '/' && rtrim($publicUrl, '/') !== '') {
214 214
             $tryPublicUrls[rtrim($publicUrl, '/')] = $this->slashSuffixHandling;
215 215
             if ($queryString !== '') {
216
-                $tryPublicUrls[rtrim($publicUrl, '/') . $queryString] = $this->slashSuffixHandling;
216
+                $tryPublicUrls[rtrim($publicUrl, '/').$queryString] = $this->slashSuffixHandling;
217 217
             }
218 218
         }
219 219
 
Please login to merge, or discard this patch.