Code Duplication    Length = 7-8 lines in 2 locations

includes/resourceloader/ResourceLoaderModule.php 1 location

@@ 186-193 (lines=8) @@
183
	 * @return Config
184
	 * @since 1.24
185
	 */
186
	public function getConfig() {
187
		if ( $this->config === null ) {
188
			// Ugh, fall back to default
189
			$this->config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' );
190
		}
191
192
		return $this->config;
193
	}
194
195
	/**
196
	 * @param Config $config

maintenance/Maintenance.php 1 location

@@ 500-506 (lines=7) @@
497
	 * @since 1.24
498
	 * @return Config
499
	 */
500
	public function getConfig() {
501
		if ( $this->config === null ) {
502
			$this->config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' );
503
		}
504
505
		return $this->config;
506
	}
507
508
	/**
509
	 * @since 1.24