@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $validator = Validation::createValidator(); |
64 | 64 | |
65 | - if(isset($options['apiEndpoint'])){ |
|
65 | + if (isset($options['apiEndpoint'])) { |
|
66 | 66 | Client::validateClientEndpoint($options, $validator); |
67 | 67 | } |
68 | 68 | |
@@ -200,11 +200,11 @@ discard block |
||
200 | 200 | * @param [Validator] $validator |
201 | 201 | * @return void |
202 | 202 | */ |
203 | - private static function validateClientEndpoint($options, $validator){ |
|
203 | + private static function validateClientEndpoint($options, $validator) { |
|
204 | 204 | $violations = $validator->validate($options['apiEndpoint'], [ |
205 | 205 | new Url(), |
206 | 206 | ]); |
207 | - if(count($violations) != 0){ |
|
207 | + if (count($violations) != 0) { |
|
208 | 208 | throw new Exception\InvalidAttributeValue( |
209 | 209 | 'Your API endpoint is not a valid URL', |
210 | 210 | $violations |