@@ -136,7 +136,7 @@ |
||
136 | 136 | |
137 | 137 | $topCountValue = $this->getRequest()->getTopOptionCount(); |
138 | 138 | if (null !== $topCountValue) { |
139 | - $remainingCount = $topCountValue - $this->getRequest()->getTopCount(); |
|
139 | + $remainingCount = $topCountValue-$this->getRequest()->getTopCount(); |
|
140 | 140 | if (0 < $remainingCount) { |
141 | 141 | if (null !== $queryParameterString) { |
142 | 142 | $queryParameterString .= '&'; |
@@ -293,9 +293,9 @@ |
||
293 | 293 | [$this->getBaseType() ?? '', $other->getBaseType() ?? ''], |
294 | 294 | [$this->getRelationName() ?? '', $other->getRelationName() ?? ''], |
295 | 295 | ]; |
296 | - foreach($cmps as $cmpvals){ |
|
296 | + foreach ($cmps as $cmpvals) { |
|
297 | 297 | $cmp = strcmp($cmpvals[0], $cmpvals[1]); |
298 | - if(0 !== $cmp){ |
|
298 | + if (0 !== $cmp) { |
|
299 | 299 | return $cmp / abs($cmp); |
300 | 300 | } |
301 | 301 | } |