@@ 606-618 (lines=13) @@ | ||
603 | if ( in_array( 'invalidTitles', $invalidChecks ) ) { |
|
604 | self::addValues( $result, $this->getInvalidTitlesAndReasons(), [ 'invalid' ] ); |
|
605 | } |
|
606 | if ( in_array( 'special', $invalidChecks ) ) { |
|
607 | $known = []; |
|
608 | $unknown = []; |
|
609 | foreach ( $this->getSpecialTitles() as $title ) { |
|
610 | if ( $title->isKnown() ) { |
|
611 | $known[] = $title; |
|
612 | } else { |
|
613 | $unknown[] = $title; |
|
614 | } |
|
615 | } |
|
616 | self::addValues( $result, $unknown, [ 'special', 'missing' ] ); |
|
617 | self::addValues( $result, $known, [ 'special' ] ); |
|
618 | } |
|
619 | if ( in_array( 'missingIds', $invalidChecks ) ) { |
|
620 | self::addValues( $result, $this->getMissingPageIDs(), [ 'missing' ], 'pageid' ); |
|
621 | } |
|
@@ 625-637 (lines=13) @@ | ||
622 | if ( in_array( 'missingRevIds', $invalidChecks ) ) { |
|
623 | self::addValues( $result, $this->getMissingRevisionIDs(), [ 'missing' ], 'revid' ); |
|
624 | } |
|
625 | if ( in_array( 'missingTitles', $invalidChecks ) ) { |
|
626 | $known = []; |
|
627 | $unknown = []; |
|
628 | foreach ( $this->getMissingTitles() as $title ) { |
|
629 | if ( $title->isKnown() ) { |
|
630 | $known[] = $title; |
|
631 | } else { |
|
632 | $unknown[] = $title; |
|
633 | } |
|
634 | } |
|
635 | self::addValues( $result, $unknown, [ 'missing' ] ); |
|
636 | self::addValues( $result, $known, [ 'missing', 'known' ] ); |
|
637 | } |
|
638 | if ( in_array( 'interwikiTitles', $invalidChecks ) ) { |
|
639 | self::addValues( $result, $this->getInterwikiTitlesAsResult() ); |
|
640 | } |