Code Duplication    Length = 7-7 lines in 5 locations

includes/parser/Parser.php 5 locations

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