Completed
Push — master ( 41fdc2...08bfbb )
by Lars
17s queued 13s
created
src/voku/helper/Bootup.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 return false;
81 81
             }
82 82
 
83
-            $uri = (string) $_SERVER['REQUEST_URI'];
83
+            $uri = (string)$_SERVER['REQUEST_URI'];
84 84
         }
85 85
 
86 86
         $uriOrig = $uri;
@@ -97,27 +97,27 @@  discard block
 block discarded – undo
97 97
         // When not, assumes Windows-1252 and redirects to the corresponding UTF-8 encoded URL
98 98
         //
99 99
 
100
-        $uri = (string) \preg_replace_callback(
100
+        $uri = (string)\preg_replace_callback(
101 101
             '/[\x80-\xFF]+/',
102 102
             /**
103 103
              * @param array $m
104 104
              *
105 105
              * @return string
106 106
              */
107
-            static function (array $m): string {
107
+            static function(array $m): string {
108 108
                 return \rawurlencode($m[0]);
109 109
             },
110 110
             $uri
111 111
         );
112 112
 
113
-        $uri = (string) \preg_replace_callback(
113
+        $uri = (string)\preg_replace_callback(
114 114
             '/(?:%[89A-F][0-9A-F])+/i',
115 115
             /**
116 116
              * @param array $m
117 117
              *
118 118
              * @return string
119 119
              */
120
-            static function (array $m): string {
120
+            static function(array $m): string {
121 121
                 return \rawurlencode(UTF8::rawurldecode($m[0]));
122 122
             },
123 123
             $uri
@@ -131,19 +131,19 @@  discard block
 block discarded – undo
131 131
             \headers_sent() === false
132 132
         ) {
133 133
             $severProtocol = ($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1');
134
-            \header($severProtocol . ' 301 Moved Permanently');
134
+            \header($severProtocol.' 301 Moved Permanently');
135 135
 
136 136
             if (\strncmp($uri, '/', 1) === 0) {
137
-                \header('Location: /' . \ltrim($uri, '/'));
137
+                \header('Location: /'.\ltrim($uri, '/'));
138 138
             } else {
139
-                \header('Location: ' . $uri);
139
+                \header('Location: '.$uri);
140 140
             }
141 141
 
142 142
             exit();
143 143
         }
144 144
 
145 145
         if (\strncmp($uri, '/', 1) === 0) {
146
-            $uri = '/' . \ltrim($uri, '/');
146
+            $uri = '/'.\ltrim($uri, '/');
147 147
         }
148 148
 
149 149
         return $uri;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             return false;
187 187
         }
188 188
 
189
-        $length = (int) $length;
189
+        $length = (int)$length;
190 190
 
191 191
         if ($length <= 0) {
192 192
             return false;
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     {
220 220
         static $_IS_PHP;
221 221
 
222
-        $version = (string) $version;
222
+        $version = (string)$version;
223 223
 
224 224
         if (!isset($_IS_PHP[$version])) {
225 225
             $_IS_PHP[$version] = \version_compare(\PHP_VERSION, $version, '>=');
Please login to merge, or discard this patch.