@@ -70,8 +70,7 @@ |
||
70 | 70 | if (!is_string($id) && !is_int($id)) { |
71 | 71 | $this->id = uniqid('', false); |
72 | 72 | throw new InvalidArgumentException('Unsupported id type ('.gettype($id).') - expected type of string or int'); |
73 | - } |
|
74 | - else { |
|
73 | + } else { |
|
75 | 74 | $this->id = $id; |
76 | 75 | } |
77 | 76 | return $this; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | */ |
88 | 88 | public function orderGroups() : array { |
89 | 89 | usort($this->groups, static function($a, $b) { |
90 | - return $a->getOrder() - $b->getOrder(); |
|
90 | + return $a->getOrder()-$b->getOrder(); |
|
91 | 91 | }); |
92 | 92 | return $this->groups; |
93 | 93 | } |