Passed
Push — virtual_option_deprecated ( 367ed1...1fa7d3 )
by
unknown
03:00
created
src/Zicht/Bundle/UrlBundle/DependencyInjection/ZichtUrlExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function load(array $configs, ContainerBuilder $container)
29 29
     {
30
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
30
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31 31
         $loader->load('services.xml');
32 32
 
33 33
         $config = $this->processConfiguration(new Configuration(), $configs);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
 
73 73
         $formResources = $container->getParameter('twig.form.resources');
74
-        $formResources[]= 'ZichtUrlBundle::form_theme.html.twig';
74
+        $formResources[] = 'ZichtUrlBundle::form_theme.html.twig';
75 75
         $container->setParameter('twig.form.resources', $formResources);
76 76
     }
77 77
 
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Entity/ErrorLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
     public function __toString()
96 96
     {
97 97
         return (string)$this->message
98
-            . ' @ ' . (string)($this->date_created ? $this->date_created->format('YmdHis') : '');
98
+            . ' @ '.(string)($this->date_created ? $this->date_created->format('YmdHis') : '');
99 99
     }
100 100
 
101 101
     /**
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Entity/UrlAlias.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@
 block discarded – undo
25 25
      * The alias is an internal rewrite, i.e. external url's are rewritten to internal on request,
26 26
      * and vice versa when composing an url.
27 27
      */
28
-    const REWRITE   = 0;
28
+    const REWRITE = 0;
29 29
 
30 30
     /**
31 31
      * The MOVE type yields a 301 response with the internal url if the public url is matched
32 32
      */
33
-    const MOVE      = 301;
33
+    const MOVE = 301;
34 34
 
35 35
     /**
36 36
      * The ALIAS type yields a 302 response with the internal url if the public url is matched
37 37
      */
38
-    const ALIAS     = 302;
38
+    const ALIAS = 302;
39 39
 
40 40
     /**
41 41
      * @ORM\Id
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Form/Extension/TinymceTypeExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function getExtendedType()
42 42
     {
43
-       return TinymceTypeExtension::class;
43
+        return TinymceTypeExtension::class;
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Twig/UrlExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,13 +108,13 @@
 block discarded – undo
108 108
             try {
109 109
                 $this->static_refs[$name] = $this->provider->url($name);
110 110
             } catch (UnsupportedException $e) {
111
-                $this->static_refs[$name] = '/[static_reference: '. $name . ']';
111
+                $this->static_refs[$name] = '/[static_reference: '.$name.']';
112 112
             }
113 113
         }
114 114
 
115 115
         $ret = $this->static_refs[$name];
116 116
         if ($params) {
117
-            $ret .= '?' . http_build_query($params, 0, '&');
117
+            $ret .= '?'.http_build_query($params, 0, '&');
118 118
         }
119 119
 
120 120
         return $ret;
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/Params/UriParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             if ($external = $this->translateKeyOutput($param)) {
122 122
                 $param = $external;
123 123
             }
124
-            $ret .= $param . $this->seperators['key_value'];
124
+            $ret .= $param.$this->seperators['key_value'];
125 125
             $firstValue = true;
126 126
             foreach ($values as $value) {
127 127
                 if ($external = $this->translateValueOutput($internal, $value)) {
Please login to merge, or discard this patch.
src/Zicht/Bundle/UrlBundle/Url/Params/QueryStringUriParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function composeUri($params)
29 29
     {
30
-        $ret   = [];
30
+        $ret = [];
31 31
 
32 32
         foreach ($params as $param => $values) {
33 33
             $internal = $param;
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 if ($external = $this->translateValueOutput($internal, $value)) {
40 40
                     $value = $external;
41 41
                 }
42
-                $ret[$param][]= $value;
42
+                $ret[$param][] = $value;
43 43
             }
44 44
         }
45 45
 
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.