@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | /** |
458 | 458 | * @param string $text |
459 | 459 | * |
460 | - * @return bool |
|
460 | + * @return integer |
|
461 | 461 | */ |
462 | 462 | protected function isPartOfWord($text) |
463 | 463 | { |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | /** |
610 | 610 | * @param string $str |
611 | 611 | * |
612 | - * @return bool |
|
612 | + * @return integer |
|
613 | 613 | */ |
614 | 614 | protected function ctypeAlphanumUnicode($str) |
615 | 615 | { |
@@ -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(mb_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(mb_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(mb_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'); |