Code Duplication    Length = 7-7 lines in 5 locations

includes/parser/Parser.php 5 locations

@@ 2632-2638 (lines=7) @@
2629
					$this->mOutput->setSpeculativeRevIdUsed( $value );
2630
				}
2631
				break;
2632
			case 'revisionday':
2633
				# Let the edit saving system know we should parse the page
2634
				# *after* a revision ID has been assigned. This is for null edits.
2635
				$this->mOutput->setFlag( 'vary-revision' );
2636
				wfDebug( __METHOD__ . ": {{REVISIONDAY}} used, setting vary-revision...\n" );
2637
				$value = intval( substr( $this->getRevisionTimestamp(), 6, 2 ) );
2638
				break;
2639
			case 'revisionday2':
2640
				# Let the edit saving system know we should parse the page
2641
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2639-2645 (lines=7) @@
2636
				wfDebug( __METHOD__ . ": {{REVISIONDAY}} used, setting vary-revision...\n" );
2637
				$value = intval( substr( $this->getRevisionTimestamp(), 6, 2 ) );
2638
				break;
2639
			case 'revisionday2':
2640
				# Let the edit saving system know we should parse the page
2641
				# *after* a revision ID has been assigned. This is for null edits.
2642
				$this->mOutput->setFlag( 'vary-revision' );
2643
				wfDebug( __METHOD__ . ": {{REVISIONDAY2}} used, setting vary-revision...\n" );
2644
				$value = substr( $this->getRevisionTimestamp(), 6, 2 );
2645
				break;
2646
			case 'revisionmonth':
2647
				# Let the edit saving system know we should parse the page
2648
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2646-2652 (lines=7) @@
2643
				wfDebug( __METHOD__ . ": {{REVISIONDAY2}} used, setting vary-revision...\n" );
2644
				$value = substr( $this->getRevisionTimestamp(), 6, 2 );
2645
				break;
2646
			case 'revisionmonth':
2647
				# Let the edit saving system know we should parse the page
2648
				# *after* a revision ID has been assigned. This is for null edits.
2649
				$this->mOutput->setFlag( 'vary-revision' );
2650
				wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
2651
				$value = substr( $this->getRevisionTimestamp(), 4, 2 );
2652
				break;
2653
			case 'revisionmonth1':
2654
				# Let the edit saving system know we should parse the page
2655
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2653-2659 (lines=7) @@
2650
				wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
2651
				$value = substr( $this->getRevisionTimestamp(), 4, 2 );
2652
				break;
2653
			case 'revisionmonth1':
2654
				# Let the edit saving system know we should parse the page
2655
				# *after* a revision ID has been assigned. This is for null edits.
2656
				$this->mOutput->setFlag( 'vary-revision' );
2657
				wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
2658
				$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
2659
				break;
2660
			case 'revisionyear':
2661
				# Let the edit saving system know we should parse the page
2662
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2660-2666 (lines=7) @@
2657
				wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
2658
				$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
2659
				break;
2660
			case 'revisionyear':
2661
				# Let the edit saving system know we should parse the page
2662
				# *after* a revision ID has been assigned. This is for null edits.
2663
				$this->mOutput->setFlag( 'vary-revision' );
2664
				wfDebug( __METHOD__ . ": {{REVISIONYEAR}} used, setting vary-revision...\n" );
2665
				$value = substr( $this->getRevisionTimestamp(), 0, 4 );
2666
				break;
2667
			case 'revisiontimestamp':
2668
				# Let the edit saving system know we should parse the page
2669
				# *after* a revision ID has been assigned. This is for null edits.