Passed
Pull Request — master (#27)
by
unknown
56s
created
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.