Code Duplication    Length = 7-7 lines in 5 locations

includes/parser/Parser.php 5 locations

@@ 2607-2613 (lines=7) @@
2604
				wfDebug( __METHOD__ . ": {{REVISIONID}} used, setting vary-revision...\n" );
2605
				$value = $this->mRevisionId;
2606
				break;
2607
			case 'revisionday':
2608
				# Let the edit saving system know we should parse the page
2609
				# *after* a revision ID has been assigned. This is for null edits.
2610
				$this->mOutput->setFlag( 'vary-revision' );
2611
				wfDebug( __METHOD__ . ": {{REVISIONDAY}} used, setting vary-revision...\n" );
2612
				$value = intval( substr( $this->getRevisionTimestamp(), 6, 2 ) );
2613
				break;
2614
			case 'revisionday2':
2615
				# Let the edit saving system know we should parse the page
2616
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2614-2620 (lines=7) @@
2611
				wfDebug( __METHOD__ . ": {{REVISIONDAY}} used, setting vary-revision...\n" );
2612
				$value = intval( substr( $this->getRevisionTimestamp(), 6, 2 ) );
2613
				break;
2614
			case 'revisionday2':
2615
				# Let the edit saving system know we should parse the page
2616
				# *after* a revision ID has been assigned. This is for null edits.
2617
				$this->mOutput->setFlag( 'vary-revision' );
2618
				wfDebug( __METHOD__ . ": {{REVISIONDAY2}} used, setting vary-revision...\n" );
2619
				$value = substr( $this->getRevisionTimestamp(), 6, 2 );
2620
				break;
2621
			case 'revisionmonth':
2622
				# Let the edit saving system know we should parse the page
2623
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2621-2627 (lines=7) @@
2618
				wfDebug( __METHOD__ . ": {{REVISIONDAY2}} used, setting vary-revision...\n" );
2619
				$value = substr( $this->getRevisionTimestamp(), 6, 2 );
2620
				break;
2621
			case 'revisionmonth':
2622
				# Let the edit saving system know we should parse the page
2623
				# *after* a revision ID has been assigned. This is for null edits.
2624
				$this->mOutput->setFlag( 'vary-revision' );
2625
				wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
2626
				$value = substr( $this->getRevisionTimestamp(), 4, 2 );
2627
				break;
2628
			case 'revisionmonth1':
2629
				# Let the edit saving system know we should parse the page
2630
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2628-2634 (lines=7) @@
2625
				wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
2626
				$value = substr( $this->getRevisionTimestamp(), 4, 2 );
2627
				break;
2628
			case 'revisionmonth1':
2629
				# Let the edit saving system know we should parse the page
2630
				# *after* a revision ID has been assigned. This is for null edits.
2631
				$this->mOutput->setFlag( 'vary-revision' );
2632
				wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
2633
				$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
2634
				break;
2635
			case 'revisionyear':
2636
				# Let the edit saving system know we should parse the page
2637
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2635-2641 (lines=7) @@
2632
				wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
2633
				$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
2634
				break;
2635
			case 'revisionyear':
2636
				# Let the edit saving system know we should parse the page
2637
				# *after* a revision ID has been assigned. This is for null edits.
2638
				$this->mOutput->setFlag( 'vary-revision' );
2639
				wfDebug( __METHOD__ . ": {{REVISIONYEAR}} used, setting vary-revision...\n" );
2640
				$value = substr( $this->getRevisionTimestamp(), 0, 4 );
2641
				break;
2642
			case 'revisiontimestamp':
2643
				# Let the edit saving system know we should parse the page
2644
				# *after* a revision ID has been assigned. This is for null edits.