| @@ 168-175 (lines=8) @@ | ||
| 165 | } |
|
| 166 | ||
| 167 | $matches = []; |
|
| 168 | if (preg_match('/^(?<key>.*?):=(?<file>@?)(?<value>.*?)$/', $value, $matches)) { |
|
| 169 | if (!$value = $this->getArgValue($matches)) { |
|
| 170 | return false; |
|
| 171 | } |
|
| 172 | ||
| 173 | $body[$matches['key']] = json_decode($value); |
|
| 174 | continue; |
|
| 175 | } |
|
| 176 | ||
| 177 | if (preg_match('/^(?<header>.*?):(?<value>.*?)$/', $value, $matches) |
|
| 178 | && !preg_match('@^http(s?)://@', $value)) { |
|
| @@ 183-190 (lines=8) @@ | ||
| 180 | continue; |
|
| 181 | } |
|
| 182 | ||
| 183 | if (preg_match('/^(?<key>.*?)=(?<file>@?)(?<value>.*?)$/', $value, $matches)) { |
|
| 184 | if (!$value = $this->getArgValue($matches)) { |
|
| 185 | return false; |
|
| 186 | } |
|
| 187 | ||
| 188 | $body[$matches['key']] = $matches['value']; |
|
| 189 | continue; |
|
| 190 | } |
|
| 191 | ||
| 192 | if (!isset($url)) { |
|
| 193 | $url = $value; |
|