@@ -19,6 +19,6 @@ |
||
19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
20 | 20 | ]; |
21 | 21 | |
22 | -$result =& $data; |
|
22 | +$result = & $data; |
|
23 | 23 | unset($data); |
24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
20 | 20 | ]; |
21 | 21 | |
22 | -$result =& $data; |
|
22 | +$result = & $data; |
|
23 | 23 | unset($data); |
24 | 24 | return $result; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\helper; |
6 | 6 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | $uri = (string)\preg_replace_callback( |
99 | 99 | '/[\x80-\xFF]+/', |
100 | - function ($m) { |
|
100 | + function($m) { |
|
101 | 101 | return \rawurlencode($m[0]); |
102 | 102 | }, |
103 | 103 | $uri |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | $uri = (string)\preg_replace_callback( |
107 | 107 | '/(?:%[89A-F][0-9A-F])+/i', |
108 | - function ($m) { |
|
108 | + function($m) { |
|
109 | 109 | return \rawurlencode(UTF8::rawurldecode($m[0])); |
110 | 110 | }, |
111 | 111 | $uri |
@@ -120,8 +120,8 @@ discard block |
||
120 | 120 | ) { |
121 | 121 | // Use ob_start() to buffer content and avoid problem of headers already sent... |
122 | 122 | $severProtocol = ($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1'); |
123 | - \header($severProtocol . ' 301 Moved Permanently'); |
|
124 | - \header('Location: ' . $uri); |
|
123 | + \header($severProtocol.' 301 Moved Permanently'); |
|
124 | + \header('Location: '.$uri); |
|
125 | 125 | exit(); |
126 | 126 | } |
127 | 127 |