forked from LiveCarta/PayPal-PHP-SDK
[PSR] Fixed library source
- Using `php-cs-fixer` tool.
This commit is contained in:
@@ -23,7 +23,7 @@ class ArgumentValidator
|
||||
if ($argument === null) {
|
||||
// Error if Object Null
|
||||
throw new \InvalidArgumentException("$argumentName cannot be null");
|
||||
} else if (gettype($argument) == 'string' && trim($argument) == ''){
|
||||
} elseif (gettype($argument) == 'string' && trim($argument) == '') {
|
||||
// Error if String Empty
|
||||
throw new \InvalidArgumentException("$argumentName string cannot be empty");
|
||||
}
|
||||
|
||||
@@ -32,4 +32,4 @@ class JsonValidator
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ class NumericValidator
|
||||
{
|
||||
if (trim($argument) != null && !is_numeric($argument)) {
|
||||
throw new \InvalidArgumentException("$argumentName is not a valid numeric value");
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@ class UrlValidator
|
||||
throw new \InvalidArgumentException("$urlName is not a fully qualified URL");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user