@@ -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 | self::validateClientEndpoint($options, $validator);  | 
                                                        
| 67 | 67 | self::$url = $options['apiEndpoint'];  | 
                                                        
| 68 | 68 | }  | 
                                                        
@@ -201,11 +201,11 @@ discard block  | 
                                                    ||
| 201 | 201 | * @param [Validator] $validator  | 
                                                        
| 202 | 202 | * @return void  | 
                                                        
| 203 | 203 | */  | 
                                                        
| 204 | -    private static function validateClientEndpoint($options, $validator){ | 
                                                        |
| 204 | +    private static function validateClientEndpoint($options, $validator) { | 
                                                        |
| 205 | 205 | $violations = $validator->validate($options['apiEndpoint'], [  | 
                                                        
| 206 | 206 | new Url(),  | 
                                                        
| 207 | 207 | ]);  | 
                                                        
| 208 | -        if(count($violations) != 0){ | 
                                                        |
| 208 | +        if (count($violations) != 0) { | 
                                                        |
| 209 | 209 | throw new Exception\InvalidAttributeValue(  | 
                                                        
| 210 | 210 | 'Your API endpoint is not a valid URL',  | 
                                                        
| 211 | 211 | $violations  |