@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | class DataslangApi { |
| 8 | 8 | |
| 9 | - public function __construct(){ |
|
| 9 | + public function __construct(){ |
|
| 10 | 10 | $this->client = new Client([ |
| 11 | 11 | // Base URI is used with relative requests |
| 12 | 12 | 'base_uri' => 'http://api.dataslang.com', |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | ]); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function validate($xml, $xsd){ |
|
| 18 | + public function validate($xml, $xsd){ |
|
| 19 | 19 | $b = false; |
| 20 | 20 | $response = $this->client->request('POST', '/validate', [ |
| 21 | 21 | 'form_params' => [ |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | ] |
| 27 | 27 | ] |
| 28 | 28 | ]); |
| 29 | - return $b; |
|
| 30 | - } |
|
| 29 | + return $b; |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | 32 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | class DataslangApi { |
| 8 | 8 | |
| 9 | - public function __construct(){ |
|
| 9 | + public function __construct() { |
|
| 10 | 10 | $this->client = new Client([ |
| 11 | 11 | // Base URI is used with relative requests |
| 12 | 12 | 'base_uri' => 'http://api.dataslang.com', |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | ]); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function validate($xml, $xsd){ |
|
| 18 | + public function validate($xml, $xsd) { |
|
| 19 | 19 | $b = false; |
| 20 | 20 | $response = $this->client->request('POST', '/validate', [ |
| 21 | 21 | 'form_params' => [ |