Code Duplication    Length = 9-9 lines in 2 locations

includes/parser/ParserCache.php 2 locations

@@ 153-161 (lines=9) @@
150
					"Parser options key expired, touched " . $article->getTouched()
151
					. ", epoch $wgCacheEpoch, cached $cacheTime\n" );
152
				return false;
153
			} elseif ( !$useOutdated && $optionsKey->isDifferentRevision( $article->getLatest() ) ) {
154
				wfIncrStats( "pcache.miss.revid" );
155
				$revId = $article->getLatest();
156
				$cachedRevId = $optionsKey->getCacheRevisionId();
157
				wfDebugLog( "ParserCache",
158
					"ParserOutput key is for an old revision, latest $revId, cached $cachedRevId\n"
159
				);
160
				return false;
161
			}
162
163
			// $optionsKey->mUsedOptions is set by save() by calling ParserOutput::getUsedOptions()
164
			$usedOptions = $optionsKey->mUsedOptions;
@@ 233-241 (lines=9) @@
230
				"ParserOutput key expired, touched $touched, "
231
				. "epoch $wgCacheEpoch, cached $cacheTime\n" );
232
			$value = false;
233
		} elseif ( !$useOutdated && $value->isDifferentRevision( $article->getLatest() ) ) {
234
			wfIncrStats( "pcache.miss.revid" );
235
			$revId = $article->getLatest();
236
			$cachedRevId = $value->getCacheRevisionId();
237
			wfDebugLog( "ParserCache",
238
				"ParserOutput key is for an old revision, latest $revId, cached $cachedRevId\n"
239
			);
240
			$value = false;
241
		} elseif (
242
			Hooks::run( 'RejectParserCacheValue', [ $value, $wikiPage, $popts ] ) === false
243
		) {
244
			wfIncrStats( 'pcache.miss.rejected' );