@@ -34,16 +34,14 @@ discard block |
||
34 | 34 | if ($method === 'auto' && isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== FALSE) |
35 | 35 | { |
36 | 36 | $method = 'refresh'; |
37 | - } |
|
38 | - elseif ($method !== 'refresh' && (empty($code) OR ! is_numeric($code))) |
|
37 | + } elseif ($method !== 'refresh' && (empty($code) OR ! is_numeric($code))) |
|
39 | 38 | { |
40 | 39 | if (isset($_SERVER['SERVER_PROTOCOL'], $_SERVER['REQUEST_METHOD']) && $_SERVER['SERVER_PROTOCOL'] === 'HTTP/1.1') |
41 | 40 | { |
42 | 41 | $code = ($_SERVER['REQUEST_METHOD'] !== 'GET') |
43 | 42 | ? 303 // reference: http://en.wikipedia.org/wiki/Post/Redirect/Get |
44 | 43 | : 307; |
45 | - } |
|
46 | - else |
|
44 | + } else |
|
47 | 45 | { |
48 | 46 | $code = 302; |
49 | 47 | } |
@@ -68,8 +66,7 @@ discard block |
||
68 | 66 | if ( ! is_testing_env()) |
69 | 67 | { |
70 | 68 | exit; |
71 | - } |
|
72 | - else |
|
69 | + } else |
|
73 | 70 | { |
74 | 71 | while (ob_get_level() > 1) |
75 | 72 | { |