| Conditions | 95 |
| Paths | > 20000 |
| Total Lines | 440 |
| Code Lines | 308 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 451 | public function searchIndividualsAdvanced(array $trees, array $fields, array $modifiers): Collection |
||
| 452 | { |
||
| 453 | $fields = array_filter($fields); |
||
| 454 | |||
| 455 | $query = DB::table('individuals') |
||
| 456 | ->select(['individuals.*']) |
||
| 457 | ->distinct(); |
||
| 458 | |||
| 459 | $this->whereTrees($query, 'i_file', $trees); |
||
| 460 | |||
| 461 | // Join the following tables |
||
| 462 | $father_name = false; |
||
| 463 | $mother_name = false; |
||
| 464 | $spouse_family = false; |
||
| 465 | $indi_name = false; |
||
| 466 | $indi_dates = []; |
||
| 467 | $fam_dates = []; |
||
| 468 | $indi_plac = false; |
||
| 469 | $fam_plac = false; |
||
| 470 | |||
| 471 | foreach ($fields as $field_name => $field_value) { |
||
| 472 | if ($field_value !== '') { |
||
| 473 | // Fields can have up to 4 parts, but we only need the first 3 to identify |
||
| 474 | // which tables to select |
||
| 475 | $field_parts = explode(':', $field_name . '::'); |
||
| 476 | |||
| 477 | if ($field_parts[0] === 'FAMC') { |
||
| 478 | // Parent name - FAMC:[HUSB|WIFE]:NAME:[GIVN|SURN] |
||
| 479 | if ($field_parts[1] === 'HUSB') { |
||
| 480 | $father_name = true; |
||
| 481 | } else { |
||
| 482 | $mother_name = true; |
||
| 483 | } |
||
| 484 | } elseif ($field_parts[0] === 'NAME') { |
||
| 485 | // Individual name - NAME:[GIVN|SURN] |
||
| 486 | $indi_name = true; |
||
| 487 | } elseif ($field_parts[0] === 'FAMS') { |
||
| 488 | // Family facts - FAMS:NOTE or FAMS:[FACT]:[DATE|PLAC] |
||
| 489 | $spouse_family = true; |
||
| 490 | if ($field_parts[2] === 'DATE') { |
||
| 491 | $fam_dates[] = $field_parts[1]; |
||
| 492 | } elseif ($field_parts[2] === 'PLAC') { |
||
| 493 | $fam_plac = true; |
||
| 494 | } |
||
| 495 | } else { |
||
| 496 | // Individual facts - [FACT] or [FACT]:[DATE|PLAC] |
||
| 497 | if ($field_parts[1] === 'DATE') { |
||
| 498 | $indi_dates[] = $field_parts[0]; |
||
| 499 | } elseif ($field_parts[1] === 'PLAC') { |
||
| 500 | $indi_plac = true; |
||
| 501 | } |
||
| 502 | } |
||
| 503 | } |
||
| 504 | } |
||
| 505 | |||
| 506 | if ($father_name || $mother_name) { |
||
| 507 | $query->join('link AS l1', static function (JoinClause $join): void { |
||
| 508 | $join |
||
| 509 | ->on('l1.l_file', '=', 'individuals.i_file') |
||
| 510 | ->on('l1.l_from', '=', 'individuals.i_id') |
||
| 511 | ->where('l1.l_type', '=', 'FAMC'); |
||
| 512 | }); |
||
| 513 | |||
| 514 | if ($father_name) { |
||
| 515 | $query->join('link AS l2', static function (JoinClause $join): void { |
||
| 516 | $join |
||
| 517 | ->on('l2.l_file', '=', 'l1.l_file') |
||
| 518 | ->on('l2.l_from', '=', 'l1.l_to') |
||
| 519 | ->where('l2.l_type', '=', 'HUSB'); |
||
| 520 | }); |
||
| 521 | $query->join('name AS father_name', static function (JoinClause $join): void { |
||
| 522 | $join |
||
| 523 | ->on('father_name.n_file', '=', 'l2.l_file') |
||
| 524 | ->on('father_name.n_id', '=', 'l2.l_to'); |
||
| 525 | }); |
||
| 526 | } |
||
| 527 | |||
| 528 | if ($mother_name) { |
||
| 529 | $query->join('link AS l3', static function (JoinClause $join): void { |
||
| 530 | $join |
||
| 531 | ->on('l3.l_file', '=', 'l1.l_file') |
||
| 532 | ->on('l3.l_from', '=', 'l1.l_to') |
||
| 533 | ->where('l3.l_type', '=', 'WIFE'); |
||
| 534 | }); |
||
| 535 | $query->join('name AS mother_name', static function (JoinClause $join): void { |
||
| 536 | $join |
||
| 537 | ->on('mother_name.n_file', '=', 'l3.l_file') |
||
| 538 | ->on('mother_name.n_id', '=', 'l3.l_to'); |
||
| 539 | }); |
||
| 540 | } |
||
| 541 | } |
||
| 542 | |||
| 543 | if ($spouse_family) { |
||
| 544 | $query->join('link AS l4', static function (JoinClause $join): void { |
||
| 545 | $join |
||
| 546 | ->on('l4.l_file', '=', 'individuals.i_file') |
||
| 547 | ->on('l4.l_from', '=', 'individuals.i_id') |
||
| 548 | ->where('l4.l_type', '=', 'FAMS'); |
||
| 549 | }); |
||
| 550 | $query->join('families AS spouse_families', static function (JoinClause $join): void { |
||
| 551 | $join |
||
| 552 | ->on('spouse_families.f_file', '=', 'l4.l_file') |
||
| 553 | ->on('spouse_families.f_id', '=', 'l4.l_to'); |
||
| 554 | }); |
||
| 555 | } |
||
| 556 | |||
| 557 | if ($indi_name) { |
||
| 558 | $query->join('name AS individual_name', static function (JoinClause $join): void { |
||
| 559 | $join |
||
| 560 | ->on('individual_name.n_file', '=', 'individuals.i_file') |
||
| 561 | ->on('individual_name.n_id', '=', 'individuals.i_id'); |
||
| 562 | }); |
||
| 563 | } |
||
| 564 | |||
| 565 | foreach (array_unique($indi_dates) as $indi_date) { |
||
| 566 | $query->join('dates AS date_' . $indi_date, static function (JoinClause $join) use ($indi_date): void { |
||
| 567 | $join |
||
| 568 | ->on('date_' . $indi_date . '.d_file', '=', 'individuals.i_file') |
||
| 569 | ->on('date_' . $indi_date . '.d_gid', '=', 'individuals.i_id'); |
||
| 570 | }); |
||
| 571 | } |
||
| 572 | |||
| 573 | foreach (array_unique($fam_dates) as $fam_date) { |
||
| 574 | $query->join('dates AS date_' . $fam_date, static function (JoinClause $join) use ($fam_date): void { |
||
| 575 | $join |
||
| 576 | ->on('date_' . $fam_date . '.d_file', '=', 'spouse_families.f_file') |
||
| 577 | ->on('date_' . $fam_date . '.d_gid', '=', 'spouse_families.f_id'); |
||
| 578 | }); |
||
| 579 | } |
||
| 580 | |||
| 581 | if ($indi_plac) { |
||
| 582 | $query->join('placelinks AS individual_placelinks', static function (JoinClause $join): void { |
||
| 583 | $join |
||
| 584 | ->on('individual_placelinks.pl_file', '=', 'individuals.i_file') |
||
| 585 | ->on('individual_placelinks.pl_gid', '=', 'individuals.i_id'); |
||
| 586 | }); |
||
| 587 | $query->join('places AS individual_places', static function (JoinClause $join): void { |
||
| 588 | $join |
||
| 589 | ->on('individual_places.p_file', '=', 'individual_placelinks.pl_file') |
||
| 590 | ->on('individual_places.p_id', '=', 'individual_placelinks.pl_p_id'); |
||
| 591 | }); |
||
| 592 | } |
||
| 593 | |||
| 594 | if ($fam_plac) { |
||
| 595 | $query->join('placelinks AS familyl_placelinks', static function (JoinClause $join): void { |
||
| 596 | $join |
||
| 597 | ->on('familyl_placelinks.pl_file', '=', 'individuals.i_file') |
||
| 598 | ->on('familyl_placelinks.pl_gid', '=', 'individuals.i_id'); |
||
| 599 | }); |
||
| 600 | $query->join('places AS family_places', static function (JoinClause $join): void { |
||
| 601 | $join |
||
| 602 | ->on('family_places.p_file', '=', 'familyl_placelinks.pl_file') |
||
| 603 | ->on('family_places.p_id', '=', 'familyl_placelinks.pl_p_id'); |
||
| 604 | }); |
||
| 605 | } |
||
| 606 | |||
| 607 | foreach ($fields as $field_name => $field_value) { |
||
| 608 | $parts = explode(':', $field_name . ':::'); |
||
| 609 | if ($parts[0] === 'NAME') { |
||
| 610 | // NAME:* |
||
| 611 | switch ($parts[1]) { |
||
| 612 | case 'GIVN': |
||
| 613 | switch ($modifiers[$field_name]) { |
||
| 614 | case 'EXACT': |
||
| 615 | $query->where('individual_name.n_givn', '=', $field_value); |
||
| 616 | break; |
||
| 617 | case 'BEGINS': |
||
| 618 | $query->where('individual_name.n_givn', 'LIKE', $field_value . '%'); |
||
| 619 | break; |
||
| 620 | case 'CONTAINS': |
||
| 621 | $query->where('individual_name.n_givn', 'LIKE', '%' . $field_value . '%'); |
||
| 622 | break; |
||
| 623 | case 'SDX_STD': |
||
| 624 | $sdx = Soundex::russell($field_value); |
||
| 625 | if ($sdx !== '') { |
||
| 626 | $this->wherePhonetic($query, 'individual_name.n_soundex_givn_std', $sdx); |
||
| 627 | } else { |
||
| 628 | // No phonetic content? Use a substring match |
||
| 629 | $query->where('individual_name.n_givn', 'LIKE', '%' . $field_value . '%'); |
||
| 630 | } |
||
| 631 | break; |
||
| 632 | case 'SDX': // SDX uses DM by default. |
||
| 633 | case 'SDX_DM': |
||
| 634 | $sdx = Soundex::daitchMokotoff($field_value); |
||
| 635 | if ($sdx !== '') { |
||
| 636 | $this->wherePhonetic($query, 'individual_name.n_soundex_givn_dm', $sdx); |
||
| 637 | } else { |
||
| 638 | // No phonetic content? Use a substring match |
||
| 639 | $query->where('individual_name.n_givn', 'LIKE', '%' . $field_value . '%'); |
||
| 640 | } |
||
| 641 | break; |
||
| 642 | } |
||
| 643 | unset($fields[$field_name]); |
||
| 644 | break; |
||
| 645 | case 'SURN': |
||
| 646 | switch ($modifiers[$field_name]) { |
||
| 647 | case 'EXACT': |
||
| 648 | $query->where(function (Builder $query) use ($field_value): void { |
||
| 649 | $query |
||
| 650 | ->where('individual_name.n_surn', '=', $field_value) |
||
| 651 | ->orWhere('individual_name.n_surname', '=', $field_value); |
||
| 652 | }); |
||
| 653 | break; |
||
| 654 | case 'BEGINS': |
||
| 655 | $query->where(function (Builder $query) use ($field_value): void { |
||
| 656 | $query |
||
| 657 | ->where('individual_name.n_surn', 'LIKE', $field_value . '%') |
||
| 658 | ->orWhere('individual_name.n_surname', 'LIKE', $field_value . '%'); |
||
| 659 | }); |
||
| 660 | break; |
||
| 661 | case 'CONTAINS': |
||
| 662 | $query->where(function (Builder $query) use ($field_value): void { |
||
| 663 | $query |
||
| 664 | ->where('individual_name.n_surn', 'LIKE', '%' . $field_value . '%') |
||
| 665 | ->orWhere('individual_name.n_surname', 'LIKE', '%' . $field_value . '%'); |
||
| 666 | }); |
||
| 667 | break; |
||
| 668 | case 'SDX_STD': |
||
| 669 | $sdx = Soundex::russell($field_value); |
||
| 670 | if ($sdx !== '') { |
||
| 671 | $this->wherePhonetic($query, 'individual_name.n_soundex_surn_std', $sdx); |
||
| 672 | } else { |
||
| 673 | // No phonetic content? Use a substring match |
||
| 674 | $query->where(function (Builder $query) use ($field_value): void { |
||
| 675 | $query |
||
| 676 | ->where('individual_name.n_surn', 'LIKE', '%' . $field_value . '%') |
||
| 677 | ->orWhere('individual_name.n_surname', 'LIKE', '%' . $field_value . '%'); |
||
| 678 | }); |
||
| 679 | } |
||
| 680 | break; |
||
| 681 | case 'SDX': // SDX uses DM by default. |
||
| 682 | case 'SDX_DM': |
||
| 683 | $sdx = Soundex::daitchMokotoff($field_value); |
||
| 684 | if ($sdx !== '') { |
||
| 685 | $this->wherePhonetic($query, 'individual_name.n_soundex_surn_dm', $sdx); |
||
| 686 | } else { |
||
| 687 | // No phonetic content? Use a substring match |
||
| 688 | $query->where(function (Builder $query) use ($field_value): void { |
||
| 689 | $query |
||
| 690 | ->where('individual_name.n_surn', 'LIKE', '%' . $field_value . '%') |
||
| 691 | ->orWhere('individual_name.n_surname', 'LIKE', '%' . $field_value . '%'); |
||
| 692 | }); |
||
| 693 | } |
||
| 694 | break; |
||
| 695 | } |
||
| 696 | unset($fields[$field_name]); |
||
| 697 | break; |
||
| 698 | case 'NICK': |
||
| 699 | case '_MARNM': |
||
| 700 | case '_HEB': |
||
| 701 | case '_AKA': |
||
| 702 | $like = "%\n1 " . $parts[0] . "%\n2 " . $parts[1] . ' %' . preg_quote($field_value, '/') . '%'; |
||
| 703 | $query->where('individuals.i_gedcom', 'LIKE', $like); |
||
| 704 | break; |
||
| 705 | } |
||
| 706 | } elseif ($parts[1] === 'DATE') { |
||
| 707 | // *:DATE |
||
| 708 | $date = new Date($field_value); |
||
| 709 | if ($date->isOK()) { |
||
| 710 | $delta = 365 * ($modifiers[$field_name] ?? 0); |
||
| 711 | $query |
||
| 712 | ->where('date_' . $parts[0] . '.d_fact', '=', $parts[0]) |
||
| 713 | ->where('date_' . $parts[0] . '.d_julianday1', '>=', $date->minimumJulianDay() - $delta) |
||
| 714 | ->where('date_' . $parts[0] . '.d_julianday2', '<=', $date->maximumJulianDay() + $delta); |
||
| 715 | } |
||
| 716 | unset($fields[$field_name]); |
||
| 717 | } elseif ($parts[0] === 'FAMS' && $parts[2] === 'DATE') { |
||
| 718 | // FAMS:*:DATE |
||
| 719 | $date = new Date($field_value); |
||
| 720 | if ($date->isOK()) { |
||
| 721 | $delta = 365 * $modifiers[$field_name]; |
||
| 722 | $query |
||
| 723 | ->where('date_' . $parts[1] . '.d_fact', '=', $parts[1]) |
||
| 724 | ->where('date_' . $parts[1] . '.d_julianday1', '>=', $date->minimumJulianDay() - $delta) |
||
| 725 | ->where('date_' . $parts[1] . '.d_julianday2', '<=', $date->maximumJulianDay() + $delta); |
||
| 726 | } |
||
| 727 | unset($fields[$field_name]); |
||
| 728 | } elseif ($parts[1] === 'PLAC') { |
||
| 729 | // *:PLAC |
||
| 730 | // SQL can only link a place to a person/family, not to an event. |
||
| 731 | $query->where('individual_places.p_place', 'LIKE', '%' . $field_value . '%'); |
||
| 732 | } elseif ($parts[0] === 'FAMS' && $parts[2] === 'PLAC') { |
||
| 733 | // FAMS:*:PLAC |
||
| 734 | // SQL can only link a place to a person/family, not to an event. |
||
| 735 | $query->where('family_places.p_place', 'LIKE', '%' . $field_value . '%'); |
||
| 736 | } elseif ($parts[0] === 'FAMC' && $parts[2] === 'NAME') { |
||
| 737 | $table = $parts[1] === 'HUSB' ? 'father_name' : 'mother_name'; |
||
| 738 | // NAME:* |
||
| 739 | switch ($parts[3]) { |
||
| 740 | case 'GIVN': |
||
| 741 | switch ($modifiers[$field_name]) { |
||
| 742 | case 'EXACT': |
||
| 743 | $query->where($table . '.n_givn', '=', $field_value); |
||
| 744 | break; |
||
| 745 | case 'BEGINS': |
||
| 746 | $query->where($table . '.n_givn', 'LIKE', $field_value . '%'); |
||
| 747 | break; |
||
| 748 | case 'CONTAINS': |
||
| 749 | $query->where($table . '.n_givn', 'LIKE', '%' . $field_value . '%'); |
||
| 750 | break; |
||
| 751 | case 'SDX_STD': |
||
| 752 | $sdx = Soundex::russell($field_value); |
||
| 753 | if ($sdx !== '') { |
||
| 754 | $this->wherePhonetic($query, $table . '.n_soundex_givn_std', $sdx); |
||
| 755 | } else { |
||
| 756 | // No phonetic content? Use a substring match |
||
| 757 | $query->where($table . '.n_givn', 'LIKE', '%' . $field_value . '%'); |
||
| 758 | } |
||
| 759 | break; |
||
| 760 | case 'SDX': // SDX uses DM by default. |
||
| 761 | case 'SDX_DM': |
||
| 762 | $sdx = Soundex::daitchMokotoff($field_value); |
||
| 763 | if ($sdx !== '') { |
||
| 764 | $this->wherePhonetic($query, $table . '.n_soundex_givn_dm', $sdx); |
||
| 765 | } else { |
||
| 766 | // No phonetic content? Use a substring match |
||
| 767 | $query->where($table . '.n_givn', 'LIKE', '%' . $field_value . '%'); |
||
| 768 | } |
||
| 769 | break; |
||
| 770 | } |
||
| 771 | break; |
||
| 772 | case 'SURN': |
||
| 773 | switch ($modifiers[$field_name]) { |
||
| 774 | case 'EXACT': |
||
| 775 | $query->where($table . '.n_surn', '=', $field_value); |
||
| 776 | break; |
||
| 777 | case 'BEGINS': |
||
| 778 | $query->where($table . '.n_surn', 'LIKE', $field_value . '%'); |
||
| 779 | break; |
||
| 780 | case 'CONTAINS': |
||
| 781 | $query->where($table . '.n_surn', 'LIKE', '%' . $field_value . '%'); |
||
| 782 | break; |
||
| 783 | case 'SDX_STD': |
||
| 784 | $sdx = Soundex::russell($field_value); |
||
| 785 | if ($sdx !== '') { |
||
| 786 | $this->wherePhonetic($query, $table . '.n_soundex_surn_std', $sdx); |
||
| 787 | } else { |
||
| 788 | // No phonetic content? Use a substring match |
||
| 789 | $query->where($table . '.n_surn', 'LIKE', '%' . $field_value . '%'); |
||
| 790 | } |
||
| 791 | break; |
||
| 792 | case 'SDX': // SDX uses DM by default. |
||
| 793 | case 'SDX_DM': |
||
| 794 | $sdx = Soundex::daitchMokotoff($field_value); |
||
| 795 | if ($sdx !== '') { |
||
| 796 | $this->wherePhonetic($query, $table . '.n_soundex_surn_dm', $sdx); |
||
| 797 | } else { |
||
| 798 | // No phonetic content? Use a substring match |
||
| 799 | $query->where($table . '.n_surn', 'LIKE', '%' . $field_value . '%'); |
||
| 800 | } |
||
| 801 | break; |
||
| 802 | } |
||
| 803 | break; |
||
| 804 | } |
||
| 805 | unset($fields[$field_name]); |
||
| 806 | } elseif ($parts[0] === 'FAMS') { |
||
| 807 | // e.g. searches for occupation, religion, note, etc. |
||
| 808 | // Initial matching only. Need PHP to apply filter. |
||
| 809 | $query->where('spouse_families.f_gedcom', 'LIKE', "%\n1 " . $parts[1] . ' %' . $field_value . '%'); |
||
| 810 | } elseif ($parts[1] === 'TYPE') { |
||
| 811 | // e.g. FACT:TYPE or EVEN:TYPE |
||
| 812 | // Initial matching only. Need PHP to apply filter. |
||
| 813 | $query->where('individuals.i_gedcom', 'LIKE', "%\n1 " . $parts[0] . "%\n2 TYPE %" . $field_value . '%'); |
||
| 814 | } else { |
||
| 815 | // e.g. searches for occupation, religion, note, etc. |
||
| 816 | // Initial matching only. Need PHP to apply filter. |
||
| 817 | $query->where('individuals.i_gedcom', 'LIKE', "%\n1 " . $parts[0] . '%' . $parts[1] . '%' . $field_value . '%'); |
||
| 818 | } |
||
| 819 | } |
||
| 820 | |||
| 821 | return $query |
||
| 822 | ->get() |
||
| 823 | ->each($this->rowLimiter()) |
||
| 824 | ->map($this->individualRowMapper()) |
||
| 825 | ->filter(GedcomRecord::accessFilter()) |
||
| 826 | ->filter(static function (Individual $individual) use ($fields): bool { |
||
| 827 | // Check for searches which were only partially matched by SQL |
||
| 828 | foreach ($fields as $field_name => $field_value) { |
||
| 829 | $parts = explode(':', $field_name . '::::'); |
||
| 830 | |||
| 831 | // NAME:* |
||
| 832 | if ($parts[0] === 'NAME') { |
||
| 833 | $regex = '/\n1 NAME.*(?:\n2.*)*\n2 ' . $parts[1] . ' .*' . preg_quote($field_value, '/') . '/i'; |
||
| 834 | |||
| 835 | if (preg_match($regex, $individual->gedcom())) { |
||
| 836 | continue; |
||
| 837 | } |
||
| 838 | |||
| 839 | return false; |
||
| 840 | } |
||
| 841 | |||
| 842 | $regex = '/' . preg_quote($field_value, '/') . '/i'; |
||
| 843 | |||
| 844 | // *:PLAC |
||
| 845 | if ($parts[1] === 'PLAC') { |
||
| 846 | foreach ($individual->facts([$parts[0]]) as $fact) { |
||
| 847 | if (preg_match($regex, $fact->place()->gedcomName())) { |
||
| 848 | continue 2; |
||
| 849 | } |
||
| 850 | } |
||
| 851 | return false; |
||
| 852 | } |
||
| 853 | |||
| 854 | // FAMS:*:PLAC |
||
| 855 | if ($parts[0] === 'FAMS' && $parts[2] === 'PLAC') { |
||
| 856 | foreach ($individual->spouseFamilies() as $family) { |
||
| 857 | foreach ($family->facts([$parts[1]]) as $fact) { |
||
| 858 | if (preg_match($regex, $fact->place()->gedcomName())) { |
||
| 859 | continue 2; |
||
| 860 | } |
||
| 861 | } |
||
| 862 | } |
||
| 863 | return false; |
||
| 864 | } |
||
| 865 | |||
| 866 | // e.g. searches for occupation, religion, note, etc. |
||
| 867 | if ($parts[0] === 'FAMS') { |
||
| 868 | foreach ($individual->spouseFamilies() as $family) { |
||
| 869 | foreach ($family->facts([$parts[1]]) as $fact) { |
||
| 870 | if (preg_match($regex, $fact->value())) { |
||
| 871 | continue 3; |
||
| 872 | } |
||
| 873 | } |
||
| 874 | } |
||
| 875 | return false; |
||
| 876 | } |
||
| 877 | |||
| 878 | // e.g. FACT:TYPE or EVEN:TYPE |
||
| 879 | if ($parts[1] === 'TYPE' || $parts[1] === '_WT_USER') { |
||
| 880 | foreach ($individual->facts([$parts[0]]) as $fact) { |
||
| 881 | if (preg_match($regex, $fact->attribute($parts[1]))) { |
||
| 882 | continue 2; |
||
| 883 | } |
||
| 884 | } |
||
| 885 | |||
| 886 | return false; |
||
| 887 | } |
||
| 888 | } |
||
| 889 | |||
| 890 | return true; |
||
| 891 | }); |
||
| 1232 |