Code Duplication    Length = 7-7 lines in 5 locations

includes/parser/Parser.php 5 locations

@@ 2568-2574 (lines=7) @@
2565
				wfDebug( __METHOD__ . ": {{REVISIONID}} used, setting vary-revision...\n" );
2566
				$value = $this->mRevisionId;
2567
				break;
2568
			case 'revisionday':
2569
				# Let the edit saving system know we should parse the page
2570
				# *after* a revision ID has been assigned. This is for null edits.
2571
				$this->mOutput->setFlag( 'vary-revision' );
2572
				wfDebug( __METHOD__ . ": {{REVISIONDAY}} used, setting vary-revision...\n" );
2573
				$value = intval( substr( $this->getRevisionTimestamp(), 6, 2 ) );
2574
				break;
2575
			case 'revisionday2':
2576
				# Let the edit saving system know we should parse the page
2577
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2575-2581 (lines=7) @@
2572
				wfDebug( __METHOD__ . ": {{REVISIONDAY}} used, setting vary-revision...\n" );
2573
				$value = intval( substr( $this->getRevisionTimestamp(), 6, 2 ) );
2574
				break;
2575
			case 'revisionday2':
2576
				# Let the edit saving system know we should parse the page
2577
				# *after* a revision ID has been assigned. This is for null edits.
2578
				$this->mOutput->setFlag( 'vary-revision' );
2579
				wfDebug( __METHOD__ . ": {{REVISIONDAY2}} used, setting vary-revision...\n" );
2580
				$value = substr( $this->getRevisionTimestamp(), 6, 2 );
2581
				break;
2582
			case 'revisionmonth':
2583
				# Let the edit saving system know we should parse the page
2584
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2582-2588 (lines=7) @@
2579
				wfDebug( __METHOD__ . ": {{REVISIONDAY2}} used, setting vary-revision...\n" );
2580
				$value = substr( $this->getRevisionTimestamp(), 6, 2 );
2581
				break;
2582
			case 'revisionmonth':
2583
				# Let the edit saving system know we should parse the page
2584
				# *after* a revision ID has been assigned. This is for null edits.
2585
				$this->mOutput->setFlag( 'vary-revision' );
2586
				wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
2587
				$value = substr( $this->getRevisionTimestamp(), 4, 2 );
2588
				break;
2589
			case 'revisionmonth1':
2590
				# Let the edit saving system know we should parse the page
2591
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2589-2595 (lines=7) @@
2586
				wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
2587
				$value = substr( $this->getRevisionTimestamp(), 4, 2 );
2588
				break;
2589
			case 'revisionmonth1':
2590
				# Let the edit saving system know we should parse the page
2591
				# *after* a revision ID has been assigned. This is for null edits.
2592
				$this->mOutput->setFlag( 'vary-revision' );
2593
				wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
2594
				$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
2595
				break;
2596
			case 'revisionyear':
2597
				# Let the edit saving system know we should parse the page
2598
				# *after* a revision ID has been assigned. This is for null edits.
@@ 2596-2602 (lines=7) @@
2593
				wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
2594
				$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
2595
				break;
2596
			case 'revisionyear':
2597
				# Let the edit saving system know we should parse the page
2598
				# *after* a revision ID has been assigned. This is for null edits.
2599
				$this->mOutput->setFlag( 'vary-revision' );
2600
				wfDebug( __METHOD__ . ": {{REVISIONYEAR}} used, setting vary-revision...\n" );
2601
				$value = substr( $this->getRevisionTimestamp(), 0, 4 );
2602
				break;
2603
			case 'revisiontimestamp':
2604
				# Let the edit saving system know we should parse the page
2605
				# *after* a revision ID has been assigned. This is for null edits.