Code Duplication    Length = 6-6 lines in 3 locations

includes/resourceloader/ResourceLoaderClientHtml.php 3 locations

@@ 285-290 (lines=6) @@
282
		}
283
284
		// Inline RLQ: Embedded modules
285
		if ( $data['embed']['general']['top'] ) {
286
			$chunks[] = $this->getLoad(
287
				$data['embed']['general']['top'],
288
				ResourceLoaderModule::TYPE_COMBINED
289
			);
290
		}
291
292
		// Inline RLQ: Load general modules
293
		if ( $data['general']['top'] ) {
@@ 316-321 (lines=6) @@
313
		}
314
315
		// Inline stylesheets (embedded only=styles)
316
		if ( $data['embed']['styles'] ) {
317
			$chunks[] = $this->getLoad(
318
				$data['embed']['styles'],
319
				ResourceLoaderModule::TYPE_STYLES
320
			);
321
		}
322
323
		// Async scripts. Once the startup is loaded, inline RLQ scripts will run.
324
		// Pass-through a custom target from OutputPage (T143066).
@@ 343-348 (lines=6) @@
340
		$chunks = [];
341
342
		// Inline RLQ: Embedded modules
343
		if ( $data['embed']['general']['bottom'] ) {
344
			$chunks[] = $this->getLoad(
345
				$data['embed']['general']['bottom'],
346
				ResourceLoaderModule::TYPE_COMBINED
347
			);
348
		}
349
350
		// Inline RLQ: Load only=scripts
351
		if ( $data['scripts']['bottom'] ) {