Passed
Push — virtual_option_deprecated ( 367ed1...1fa7d3 )
by
unknown
03:00
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.
src/Zicht/Bundle/UrlBundle/Aliasing/Aliasing.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @see addAlias
25 25
      */
26
-    const STRATEGY_OVERWRITE    = 'overwrite';
26
+    const STRATEGY_OVERWRITE = 'overwrite';
27 27
 
28 28
     /**
29 29
      * Keep existing aliases and do nothing
30 30
      *
31 31
      * @see addAlias
32 32
      */
33
-    const STRATEGY_KEEP         = 'keep';
33
+    const STRATEGY_KEEP = 'keep';
34 34
 
35 35
     /**
36 36
      * Suffix existing aliases.
37 37
      *
38 38
      * @see addAlias
39 39
      */
40
-    const STRATEGY_SUFFIX       = 'suffix';
40
+    const STRATEGY_SUFFIX = 'suffix';
41 41
 
42 42
     /**
43 43
      * @see AddAlias
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                         $original = $publicUrl;
278 278
                         $i = 1;
279 279
                         do {
280
-                            $publicUrl = $original . '-' . ($i++);
280
+                            $publicUrl = $original.'-'.($i++);
281 281
                         } while ($this->hasInternalAlias($publicUrl));
282 282
 
283 283
                         $alias = new UrlAlias($publicUrl, $internalUrl, $type);
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         $this->isBatch = $isBatch;
356 356
         $mgr = $this->manager;
357 357
         $self = $this;
358
-        return function () use ($mgr, $self) {
358
+        return function() use ($mgr, $self) {
359 359
             $mgr->flush();
360 360
             $self->setIsBatch(true);
361 361
         };
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
         $this->manager->persist($alias);
374 374
 
375 375
         if ($this->isBatch) {
376
-            $this->batch[$alias->getPublicUrl()]= $alias;
376
+            $this->batch[$alias->getPublicUrl()] = $alias;
377 377
         } else {
378 378
             $this->manager->flush($alias);
379 379
         }
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
             join(
449 449
                 ', ',
450 450
                 array_map(
451
-                    function ($v) use ($connection) {
451
+                    function($v) use ($connection) {
452 452
                         return $connection->quote($v, \PDO::PARAM_STR);
453 453
                     },
454 454
                     $urls
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/DbStaticProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $url = $this->refs[$object][$this->getLocale()];
93 93
 
94 94
         if (!preg_match('/^(http|https)/', $url) && (null !== ($request = $this->getMasterRequest()))) {
95
-            $url = $request->getBaseUrl() . '/' . ltrim($url, '/');
95
+            $url = $request->getBaseUrl().'/'.ltrim($url, '/');
96 96
         }
97 97
 
98 98
         return $url;
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
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $request = $requestStack->getMasterRequest();
27 27
 
28 28
         $this->baseUrl = $request->getBaseUrl();
29
-        $this->prefix = $request->getSchemeAndHttpHost() . $this->baseUrl;
29
+        $this->prefix = $request->getSchemeAndHttpHost().$this->baseUrl;
30 30
         $this->baseUrlLen = strlen($this->baseUrl);
31 31
     }
32 32
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         }
43 43
         $ret = ltrim($ret, '/');
44 44
         if (!empty($options['absolute'])) {
45
-            $ret = $this->prefix . '/' . $ret;
45
+            $ret = $this->prefix.'/'.$ret;
46 46
         }
47 47
         return $ret;
48 48
     }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Entity/Repository/UrlAliasRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         $where = ['public_url' => $publicUrl];
23 23
         if (null !== $mode) {
24
-            $where['mode']= $mode;
24
+            $where['mode'] = $mode;
25 25
         }
26 26
         return $this->findOneBy($where, ['id' => 'ASC']);
27 27
     }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $where = ['internal_url' => $internalUrl];
35 35
         if (null !== $mode) {
36
-            $where['mode']= $mode;
36
+            $where['mode'] = $mode;
37 37
         }
38 38
         return $this->findOneBy($where, ['id' => 'ASC']);
39 39
     }
Please login to merge, or discard this patch.
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.