diff --git a/src/main/php/util/Authority.class.php b/src/main/php/util/Authority.class.php index 74ca356..6ee6427 100755 --- a/src/main/php/util/Authority.class.php +++ b/src/main/php/util/Authority.class.php @@ -116,12 +116,6 @@ public function hashCode() { * @return int */ public function compareTo($value) { - if ($value instanceof self) { - $a= $this->asString(true); - $b= $value->asString(true); - return $a === $b ? 0 : ($a < $b ? -1 : 1); - } else { - return 1; - } + return $value instanceof self ? $this->asString(true) <=> $value->asString(true) : 1; } } \ No newline at end of file