@@ -162,14 +162,14 @@ |
||
162 | 162 | $M = $topL2 - $bottomL2 + 1; |
163 | 163 | |
164 | 164 | $delta = $N - $M; |
165 | - $isEven = ($delta & 1) == 1? false : true; |
|
165 | + $isEven = ($delta & 1) == 1 ? false : true; |
|
166 | 166 | |
167 | 167 | $limit = min($this->maxDifferences, intval(ceil(($N + $M + 1) / 2))); |
168 | 168 | |
169 | 169 | // Offset to make it odd/even. |
170 | 170 | // a 0 or 1 that we add to the start offset to make it odd/even |
171 | - $valueToAddForward = ($M & 1) == 1? 1 : 0; |
|
172 | - $valueToAddBackward = ($N & 1) == 1? 1 : 0; |
|
171 | + $valueToAddForward = ($M & 1) == 1 ? 1 : 0; |
|
172 | + $valueToAddBackward = ($N & 1) == 1 ? 1 : 0; |
|
173 | 173 | |
174 | 174 | $startForward = -$M; |
175 | 175 | $endForward = $N; |
@@ -282,12 +282,12 @@ |
||
282 | 282 | public function equals(RangeDifference $other): bool |
283 | 283 | { |
284 | 284 | return |
285 | - $this->kind === $other->getKind() && |
|
286 | - $this->leftStart === $other->getLeftStart() && |
|
287 | - $this->leftLength === $other->getLeftLength() && |
|
288 | - $this->rightStart === $other->getRightStart() && |
|
289 | - $this->rightLength === $other->getRightLength() && |
|
290 | - $this->ancestorStart === $other->getAncestorStart() && |
|
285 | + $this->kind === $other->getKind() && |
|
286 | + $this->leftStart === $other->getLeftStart() && |
|
287 | + $this->leftLength === $other->getLeftLength() && |
|
288 | + $this->rightStart === $other->getRightStart() && |
|
289 | + $this->rightLength === $other->getRightLength() && |
|
290 | + $this->ancestorStart === $other->getAncestorStart() && |
|
291 | 291 | $this->ancestorLength === $other->getAncestorLength(); |
292 | 292 | } |
293 | 293 |