Passed
Pull Request — release/4.x (#49)
by
unknown
19:59 queued 13:02
created
src/Zicht/Bundle/UrlBundle/Twig/UrlExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,13 +104,13 @@
 block discarded – undo
104 104
             try {
105 105
                 $this->static_refs[$name] = $this->provider->url($name);
106 106
             } catch (UnsupportedException $e) {
107
-                $this->static_refs[$name] = '/[static_reference: ' . $name . ']';
107
+                $this->static_refs[$name] = '/[static_reference: '.$name.']';
108 108
             }
109 109
         }
110 110
 
111 111
         $ret = $this->static_refs[$name];
112 112
         if ($params) {
113
-            $ret .= '?' . http_build_query($params, 0, '&');
113
+            $ret .= '?'.http_build_query($params, 0, '&');
114 114
         }
115 115
 
116 116
         return $ret;
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Validator/Constraints/ContainsValidUrls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
      */
18 18
     public function validatedBy()
19 19
     {
20
-        return get_class($this) . 'Validator';
20
+        return get_class($this).'Validator';
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
Zicht/Bundle/UrlBundle/Form/DataTransformer/AbstractAliasingTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @param Aliasing $aliasing
31 31
      * @param int $mode
32 32
      */
33
-    public function __construct(Aliasing $aliasing, $mode = self::MODE_TO_PUBLIC | self::MODE_TO_INTERNAL)
33
+    public function __construct(Aliasing $aliasing, $mode = self::MODE_TO_PUBLIC|self::MODE_TO_INTERNAL)
34 34
     {
35 35
         $this->aliasing = $aliasing;
36 36
         $this->mode = $mode;
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Aliasing/Aliasing.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @see addAlias
23 23
      */
24
-    const STRATEGY_OVERWRITE    = 'overwrite';
24
+    const STRATEGY_OVERWRITE = 'overwrite';
25 25
 
26 26
     /**
27 27
      * Keep existing aliases and do nothing
28 28
      *
29 29
      * @see addAlias
30 30
      */
31
-    const STRATEGY_KEEP         = 'keep';
31
+    const STRATEGY_KEEP = 'keep';
32 32
 
33 33
     /**
34 34
      * Suffix existing aliases.
35 35
      *
36 36
      * @see addAlias
37 37
      */
38
-    const STRATEGY_SUFFIX       = 'suffix';
38
+    const STRATEGY_SUFFIX = 'suffix';
39 39
 
40 40
     /**
41 41
      * @see AddAlias
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                         $original = $publicUrl;
292 292
                         $i = 1;
293 293
                         do {
294
-                            $publicUrl = $original . '-' . ($i++);
294
+                            $publicUrl = $original.'-'.($i++);
295 295
                         } while ($this->hasInternalAlias($publicUrl));
296 296
 
297 297
                         $alias = new UrlAlias($publicUrl, $internalUrl, $type);
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
         $this->isBatch = $isBatch;
369 369
         $mgr = $this->manager;
370 370
         $self = $this;
371
-        return function () use ($mgr, $self) {
371
+        return function() use ($mgr, $self) {
372 372
             $mgr->flush();
373 373
             $self->setIsBatch(true);
374 374
         };
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             join(
460 460
                 ', ',
461 461
                 array_map(
462
-                    function ($v) use ($connection) {
462
+                    function($v) use ($connection) {
463 463
                         return $connection->quote($v, \PDO::PARAM_STR);
464 464
                     },
465 465
                     $urls
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/DependencyInjection/ZichtUrlExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function load(array $configs, ContainerBuilder $container)
28 28
     {
29
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
29
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30 30
         $loader->load('services.xml');
31 31
 
32 32
         $config = $this->processConfiguration(new Configuration(), $configs);
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/Params/QueryStringUriParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function composeUri($params)
28 28
     {
29
-        $ret   = [];
29
+        $ret = [];
30 30
 
31 31
         foreach ($params as $param => $values) {
32 32
             $internal = $param;
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
@@ -82,19 +82,19 @@  discard block
 block discarded – undo
82 82
 
83 83
             // don't rewrite this.
84 84
             if (isset($parts['user']) || isset($parts['password'])) {
85
-                $ret[$url] =  $url;
85
+                $ret[$url] = $url;
86 86
                 continue;
87 87
             }
88 88
 
89 89
             $rewritten = '';
90 90
             if (isset($parts['scheme'])) {
91
-                $rewritten .= $parts['scheme'] . ':';
91
+                $rewritten .= $parts['scheme'].':';
92 92
             }
93 93
             if (isset($parts['host'])) {
94
-                $rewritten .= '//' . $parts['host'];
94
+                $rewritten .= '//'.$parts['host'];
95 95
             }
96 96
             if (isset($parts['port'])) {
97
-                $rewritten .= ':' . $parts['port'];
97
+                $rewritten .= ':'.$parts['port'];
98 98
             }
99 99
             if (isset($parts['path'])) {
100 100
                 if (isset($mappings[$parts['path']])) {
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
                 }
107 107
             }
108 108
             if (isset($parts['params'])) {
109
-                $rewritten .= '/' . $parts['params'];
109
+                $rewritten .= '/'.$parts['params'];
110 110
             }
111 111
             if (isset($parts['query'])) {
112
-                $rewritten .= '?' . $parts['query'];
112
+                $rewritten .= '?'.$parts['query'];
113 113
             }
114 114
             if (isset($parts['fragment'])) {
115
-                $rewritten .= '#' . $parts['fragment'];
115
+                $rewritten .= '#'.$parts['fragment'];
116 116
             }
117 117
 
118 118
             $ret[$url] = $rewritten;
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         foreach ($this->rewrite(array_keys($matchedGroups), $mode) as $from => $to) {
199 199
             if (isset($matchedGroups[$from]) && $from !== $to) {
200 200
                 foreach ($matchedGroups[$from] as list($source, $prefix, $oldUrl, $suffix)) {
201
-                    $replacements[$source] = $prefix . $to . $suffix;
201
+                    $replacements[$source] = $prefix.$to.$suffix;
202 202
                 }
203 203
             }
204 204
         }
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Type/UrlType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     public function buildForm(FormBuilderInterface $builder, array $options)
90 90
     {
91
-        $mode = TextTransformer::MODE_TO_INTERNAL | TextTransformer::MODE_TO_PUBLIC;
91
+        $mode = TextTransformer::MODE_TO_INTERNAL|TextTransformer::MODE_TO_PUBLIC;
92 92
 
93 93
         if ($options['no_transform_public']) {
94 94
             $mode ^= TextTransformer::MODE_TO_PUBLIC;
Please login to merge, or discard this patch.