@@ -26,6 +26,10 @@ |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param Label $data |
|
| 31 | + * @param string $endpoint |
|
| 32 | + */ |
|
| 29 | 33 | private function sendRequest($data, $endpoint){ |
| 30 | 34 | $method = 'POST'; |
| 31 | 35 | $headers = array( |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * @throws \Exception |
| 64 | 64 | */ |
| 65 | 65 | public function origin_country($value){ |
| 66 | - if (in_array($value, $this->acceptedCountries)) { |
|
| 66 | + if (in_array($value, $this->acceptedCountries)) { |
|
| 67 | 67 | $this->origin_country = $value; |
| 68 | 68 | } else { |
| 69 | 69 | $error = "Country code invalid or not serviceable"; |