aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App/CompareVersion.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/App/CompareVersion.php')
-rw-r--r--lib/private/App/CompareVersion.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/CompareVersion.php b/lib/private/App/CompareVersion.php
index bf528e3f1b8..314db1eadd6 100644
--- a/lib/private/App/CompareVersion.php
+++ b/lib/private/App/CompareVersion.php
@@ -53,9 +53,9 @@ class CompareVersion {
if (preg_match(self::REGEX_MAJOR, $required) === 1) {
return $this->compareMajor($actual, $required, $comparator);
- } else if (preg_match(self::REGEX_MAJOR_MINOR, $required) === 1) {
+ } elseif (preg_match(self::REGEX_MAJOR_MINOR, $required) === 1) {
return $this->compareMajorMinor($actual, $required, $comparator);
- } else if (preg_match(self::REGEX_MAJOR_MINOR_PATCH, $required) === 1) {
+ } elseif (preg_match(self::REGEX_MAJOR_MINOR_PATCH, $required) === 1) {
return $this->compareMajorMinorPatch($actual, $required, $comparator);
} else {
throw new InvalidArgumentException('required version is invalid');