Passed
Push — use-parameter-for-admin-class ( 0c576a )
by
unknown
12:18
created
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.