Code Duplication    Length = 6-6 lines in 2 locations

includes/api/ApiParse.php 2 locations

@@ 265-270 (lines=6) @@
262
					$result_array['wikitext'] = $this->content->serialize( $format );
263
					$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'wikitext';
264
				}
265
				if ( !is_null( $params['summary'] ) ||
266
					( !is_null( $params['sectiontitle'] ) && $this->section === 'new' )
267
				) {
268
					$result_array['parsedsummary'] = $this->formatSummary( $titleObj, $params );
269
					$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'parsedsummary';
270
				}
271
272
				$result->addValue( null, $this->getModuleName(), $result_array );
273
@@ 307-312 (lines=6) @@
304
			$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'text';
305
		}
306
307
		if ( !is_null( $params['summary'] ) ||
308
			( !is_null( $params['sectiontitle'] ) && $this->section === 'new' )
309
		) {
310
			$result_array['parsedsummary'] = $this->formatSummary( $titleObj, $params );
311
			$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'parsedsummary';
312
		}
313
314
		if ( isset( $prop['langlinks'] ) ) {
315
			$langlinks = $p_result->getLanguageLinks();