Code Duplication    Length = 6-6 lines in 3 locations

includes/resourceloader/ResourceLoaderClientHtml.php 3 locations

@@ 280-285 (lines=6) @@
277
		}
278
279
		// Inline RLQ: Embedded modules
280
		if ( $data['embed']['general']['top'] ) {
281
			$chunks[] = $this->getLoad(
282
				$data['embed']['general']['top'],
283
				ResourceLoaderModule::TYPE_COMBINED
284
			);
285
		}
286
287
		// Inline RLQ: Load general modules
288
		if ( $data['general']['top'] ) {
@@ 311-316 (lines=6) @@
308
		}
309
310
		// Inline stylesheets (embedded only=styles)
311
		if ( $data['embed']['styles'] ) {
312
			$chunks[] = $this->getLoad(
313
				$data['embed']['styles'],
314
				ResourceLoaderModule::TYPE_STYLES
315
			);
316
		}
317
318
		// Async scripts. Once the startup is loaded, inline RLQ scripts will run.
319
		$chunks[] = $this->getLoad( 'startup', ResourceLoaderModule::TYPE_SCRIPTS );
@@ 332-337 (lines=6) @@
329
		$chunks = [];
330
331
		// Inline RLQ: Embedded modules
332
		if ( $data['embed']['general']['bottom'] ) {
333
			$chunks[] = $this->getLoad(
334
				$data['embed']['general']['bottom'],
335
				ResourceLoaderModule::TYPE_COMBINED
336
			);
337
		}
338
339
		// Inline RLQ: Load only=scripts
340
		if ( $data['scripts']['bottom'] ) {