@@ -229,8 +229,8 @@ discard block |
||
| 229 | 229 | |
| 230 | 230 | /** |
| 231 | 231 | * @param Operation $operation |
| 232 | - * @param array $oldRows |
|
| 233 | - * @param array $newRows |
|
| 232 | + * @param TableRow[] $oldRows |
|
| 233 | + * @param TableRow[] $newRows |
|
| 234 | 234 | * @param array $appliedRowSpans |
| 235 | 235 | */ |
| 236 | 236 | protected function processEqualOperation(Operation $operation, $oldRows, $newRows, &$appliedRowSpans) |
@@ -249,8 +249,8 @@ discard block |
||
| 249 | 249 | |
| 250 | 250 | /** |
| 251 | 251 | * @param Operation $operation |
| 252 | - * @param array $oldRows |
|
| 253 | - * @param array $newRows |
|
| 252 | + * @param TableRow[] $oldRows |
|
| 253 | + * @param TableRow[] $newRows |
|
| 254 | 254 | * @param array $appliedRowSpans |
| 255 | 255 | */ |
| 256 | 256 | protected function processReplaceOperation(Operation $operation, $oldRows, $newRows, &$appliedRowSpans) |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | /** |
| 96 | 96 | * @param int $matchThreshold |
| 97 | 97 | * |
| 98 | - * @return AbstractDiff |
|
| 98 | + * @return HtmlDiffConfig |
|
| 99 | 99 | */ |
| 100 | 100 | public function setMatchThreshold($matchThreshold) |
| 101 | 101 | { |
@@ -4,6 +4,11 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | class Preprocessor |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param string $old |
|
| 9 | + * @param string $new |
|
| 10 | + * @param Util\MbStringUtil $stringUtil |
|
| 11 | + */ |
|
| 7 | 12 | public static function diffCommonPrefix($old, $new, $stringUtil) |
| 8 | 13 | { |
| 9 | 14 | // Quick check for common null cases. |
@@ -34,6 +39,11 @@ discard block |
||
| 34 | 39 | return $pointerMid; |
| 35 | 40 | } |
| 36 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $old |
|
| 44 | + * @param string $new |
|
| 45 | + * @param Util\MbStringUtil $stringUtil |
|
| 46 | + */ |
|
| 37 | 47 | public static function diffCommonSuffix($old, $new, $stringUtil) |
| 38 | 48 | { |
| 39 | 49 | // Quick check for common null cases. |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param array $a |
|
| 31 | - * @param array $b |
|
| 30 | + * @param string[] $a |
|
| 31 | + * @param string[] $b |
|
| 32 | 32 | * |
| 33 | 33 | * @return array |
| 34 | 34 | */ |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | * @param $c |
| 71 | 71 | * @param $a |
| 72 | 72 | * @param $b |
| 73 | - * @param $i |
|
| 74 | - * @param $j |
|
| 73 | + * @param integer $i |
|
| 74 | + * @param integer $j |
|
| 75 | 75 | * @param $matches |
| 76 | 76 | */ |
| 77 | 77 | protected function compileMatches($c, $a, $b, $i, $j, &$matches) |
@@ -396,6 +396,12 @@ |
||
| 396 | 396 | return $diff->build(); |
| 397 | 397 | } |
| 398 | 398 | |
| 399 | + /** |
|
| 400 | + * @param string $oldText |
|
| 401 | + * @param string $newText |
|
| 402 | + * @param string $attribute |
|
| 403 | + * @param string $element |
|
| 404 | + */ |
|
| 399 | 405 | protected function diffElementsByAttribute($oldText, $newText, $attribute, $element) |
| 400 | 406 | { |
| 401 | 407 | $oldAttribute = $this->getAttributeFromTag($oldText, $attribute); |