@@ -5,12 +5,12 @@ |
||
5 | 5 | $webRequest = new \ByJG\Util\WebRequest('http://www.byjg.com.br/ws/cep'); |
6 | 6 | |
7 | 7 | echo $webRequest->get([ |
8 | - 'httpmethod' => 'obterVersao' |
|
8 | + 'httpmethod' => 'obterVersao' |
|
9 | 9 | ]) . "\n"; |
10 | 10 | |
11 | 11 | echo $webRequest->post([ |
12 | - 'httpmethod' => 'obterLogradouro', |
|
13 | - 'cep' => '30130000' |
|
12 | + 'httpmethod' => 'obterLogradouro', |
|
13 | + 'cep' => '30130000' |
|
14 | 14 | ]) . "\n"; |
15 | 15 | |
16 | 16 | echo $webRequest->soapCall('obterLogradouro', ['cep' => '30130000']) . "\n"; |
@@ -54,6 +54,11 @@ |
||
54 | 54 | unlink($this->getFileByKey($key, 'tmp_name')); |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $property |
|
59 | + * |
|
60 | + * @return string |
|
61 | + */ |
|
57 | 62 | private function getFileByKey($key, $property) |
58 | 63 | { |
59 | 64 | if (!isset($_FILES[$key])) { |
@@ -420,7 +420,7 @@ |
||
420 | 420 | |
421 | 421 | /** |
422 | 422 | * @param $method |
423 | - * @param $path |
|
423 | + * @param string $path |
|
424 | 424 | * @param $properties |
425 | 425 | * @return string |
426 | 426 | * @throws OperationIdInvalidException |