Index: trunk/phase3/includes/HTMLDiff.php |
— | — | @@ -486,7 +486,7 @@ |
487 | 487 | |
488 | 488 | private $currentParent; |
489 | 489 | |
490 | | - private $newWord = ""; |
| 490 | + private $newWord = ''; |
491 | 491 | |
492 | 492 | protected $bodyStarted = false; |
493 | 493 | |
— | — | @@ -584,7 +584,7 @@ |
585 | 585 | } |
586 | 586 | |
587 | 587 | private function endWord() { |
588 | | - if (!empty($this->newWord)) { |
| 588 | + if ($this->newWord !== '') { |
589 | 589 | $node = new TextNode($this->currentParent, $this->newWord); |
590 | 590 | $this->currentParent->children[] = $node; |
591 | 591 | $node->whiteBefore = $this->whiteSpaceBeforeThis; |
Index: trunk/phase3/includes/Diff.php |
— | — | @@ -452,7 +452,7 @@ |
453 | 453 | $snake0 = $bottoml1 + $most_progress[0]; |
454 | 454 | $snake1 = $bottoml2 + $most_progress[1]; |
455 | 455 | $snake2 = 0; |
456 | | - wfDebug('Computing the LCS is too expensive. Using a heuristic.\n'); |
| 456 | + wfDebug("Computing the LCS is too expensive. Using a heuristic.\n"); |
457 | 457 | $this->heuristicUsed = true; |
458 | 458 | return 5; /* |
459 | 459 | * HACK: since we didn't really finish the LCS computation |