@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | //If follow locations enabled, headers of all redirects is returned. |
98 | 98 | //But we need headers of last request only. |
99 | - if(strstr($raw_headers, "\r\n\r\n")) { |
|
99 | + if (strstr($raw_headers, "\r\n\r\n")) { |
|
100 | 100 | $ex = explode("\r\n\r\n", $raw_headers); |
101 | 101 | $raw_headers = end($ex); |
102 | 102 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $headers = []; |
106 | 106 | |
107 | 107 | foreach ($ex_headers as $header_line) { |
108 | - if(strstr($header_line, ': ')) { |
|
108 | + if (strstr($header_line, ': ')) { |
|
109 | 109 | [$header_key, $header_value] = explode(': ', $header_line); |
110 | 110 | |
111 | 111 | $headers[$header_key] = $header_value; |