[PSR] Fixed library source

- Using `php-cs-fixer` tool.
This commit is contained in:
Jay Patel
2016-07-14 13:06:24 -05:00
parent a46855bfef
commit 1401d5563d
24 changed files with 41 additions and 55 deletions

View File

@@ -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");
}

View File

@@ -32,4 +32,4 @@ class JsonValidator
}
return true;
}
}
}

View File

@@ -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;
}

View File

@@ -23,4 +23,4 @@ class UrlValidator
throw new \InvalidArgumentException("$urlName is not a fully qualified URL");
}
}
}
}