Passed
Push — master ( 1160ec...8a3e79 )
by
unknown
02:45 queued 12s
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
             self::validateClientEndpoint($options, $validator);
67 67
             self::$url = $options['apiEndpoint'];
68 68
         }
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.