@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @param $field alias or field name |
|
| 78 | + * @param string $field alias or field name |
|
| 79 | 79 | * @return bool|mixed |
| 80 | 80 | */ |
| 81 | 81 | public function getIni($field) { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | 242 | * @param $key |
| 243 | - * @return mixed |
|
| 243 | + * @return string |
|
| 244 | 244 | */ |
| 245 | 245 | protected static function optionAlias($key) { |
| 246 | 246 | $alias = false; |
@@ -54,10 +54,11 @@ |
||
| 54 | 54 | $headers = explode(PHP_EOL, $headers); |
| 55 | 55 | array_shift($headers); // HTTP HEADER |
| 56 | 56 | foreach($headers as $h) { |
| 57 | - if(false !== strpos($h, ':')) |
|
| 58 | - list($k, $v) = explode(':', $h, 2); |
|
| 59 | - else |
|
| 60 | - list($k, $v) = array($h,''); |
|
| 57 | + if(false !== strpos($h, ':')) { |
|
| 58 | + list($k, $v) = explode(':', $h, 2); |
|
| 59 | + } else { |
|
| 60 | + list($k, $v) = array($h,''); |
|
| 61 | + } |
|
| 61 | 62 | |
| 62 | 63 | $this->header[trim($k)] = trim($v); |
| 63 | 64 | } |