@@ -14,6 +14,9 @@ |
||
14 | 14 | |
15 | 15 | protected $endTag; |
16 | 16 | |
17 | + /** |
|
18 | + * @param null|string $listType |
|
19 | + */ |
|
17 | 20 | public function __construct($listType, $startTag, $endTag, $listItems = array(), $attributes = array()) |
18 | 21 | { |
19 | 22 | $this->listType = $listType; |
@@ -8,6 +8,10 @@ |
||
8 | 8 | public $startInNew; |
9 | 9 | public $size; |
10 | 10 | |
11 | + /** |
|
12 | + * @param integer $startInOld |
|
13 | + * @param integer $size |
|
14 | + */ |
|
11 | 15 | public function __construct($startInOld, $startInNew, $size) |
12 | 16 | { |
13 | 17 | $this->startInOld = $startInOld; |
@@ -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 | { |
@@ -387,6 +387,12 @@ discard block |
||
387 | 387 | return $diff->build(); |
388 | 388 | } |
389 | 389 | |
390 | + /** |
|
391 | + * @param string $oldText |
|
392 | + * @param string $newText |
|
393 | + * @param string $attribute |
|
394 | + * @param string $element |
|
395 | + */ |
|
390 | 396 | protected function diffElementsByAttribute($oldText, $newText, $attribute, $element) |
391 | 397 | { |
392 | 398 | $oldAttribute = $this->getAttributeFromTag($oldText, $attribute); |
@@ -662,7 +668,7 @@ discard block |
||
662 | 668 | /** |
663 | 669 | * @param string $item |
664 | 670 | * |
665 | - * @return bool |
|
671 | + * @return integer |
|
666 | 672 | */ |
667 | 673 | protected function isOpeningTag($item) |
668 | 674 | { |
@@ -672,7 +678,7 @@ discard block |
||
672 | 678 | /** |
673 | 679 | * @param string $item |
674 | 680 | * |
675 | - * @return bool |
|
681 | + * @return integer |
|
676 | 682 | */ |
677 | 683 | protected function isClosingTag($item) |
678 | 684 | { |
@@ -70,8 +70,8 @@ |
||
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) |
@@ -286,6 +286,9 @@ discard block |
||
286 | 286 | return $diffList; |
287 | 287 | } |
288 | 288 | |
289 | + /** |
|
290 | + * @param string $type |
|
291 | + */ |
|
289 | 292 | protected function isOpeningListTag($word, $type = null) |
290 | 293 | { |
291 | 294 | $filter = $type !== null ? array('<'.$type) : array('<ul', '<ol', '<dl'); |
@@ -293,6 +296,9 @@ discard block |
||
293 | 296 | return in_array(substr($word, 0, 3), $filter); |
294 | 297 | } |
295 | 298 | |
299 | + /** |
|
300 | + * @param string $type |
|
301 | + */ |
|
296 | 302 | protected function isClosingListTag($word, $type = null) |
297 | 303 | { |
298 | 304 | $filter = $type !== null ? array('</'.$type) : array('</ul', '</ol', '</dl'); |
@@ -300,6 +306,9 @@ discard block |
||
300 | 306 | return in_array(substr($word, 0, 4), $filter); |
301 | 307 | } |
302 | 308 | |
309 | + /** |
|
310 | + * @param string $type |
|
311 | + */ |
|
303 | 312 | protected function isOpeningListItemTag($word, $type = null) |
304 | 313 | { |
305 | 314 | $filter = $type !== null ? array('<'.$type) : array('<li', '<dd', '<dt'); |
@@ -307,6 +316,9 @@ discard block |
||
307 | 316 | return in_array(substr($word, 0, 3), $filter); |
308 | 317 | } |
309 | 318 | |
319 | + /** |
|
320 | + * @param string $type |
|
321 | + */ |
|
310 | 322 | protected function isClosingListItemTag($word, $type = null) |
311 | 323 | { |
312 | 324 | $filter = $type !== null ? array('</'.$type) : array('</li', '</dd', '</dt'); |