Code Duplication    Length = 8-8 lines in 2 locations

src/GateKeeper.php 2 locations

@@ 284-291 (lines=8) @@
281
	/**
282
	 * @return void
283
	 */
284
	protected function addInvalidPHPVersionNotice()
285
	{
286
		$this->notice->addError([
287
			$this->notice->title( __( 'The Pollux plugin was deactivated.', 'pollux' )),
288
			sprintf( __( 'Sorry, Pollux requires PHP %s or greater in order to work properly (your server is running PHP %s).', 'pollux' ), self::MIN_PHP_VERSION, PHP_VERSION ),
289
			__( 'Please contact your hosting provider or server administrator to upgrade the version of PHP running on your server, or find an alternate plugin.', 'pollux' ),
290
		]);
291
	}
292
293
	/**
294
	 * @return void
@@ 296-303 (lines=8) @@
293
	/**
294
	 * @return void
295
	 */
296
	protected function addInvalidWPVersionNotice()
297
	{
298
		$this->notice->addError([
299
			$this->notice->title( __( 'The Pollux plugin was deactivated.', 'pollux' )),
300
			sprintf( __( 'Sorry, Pollux requires WordPress %s or greater in order to work properly.', 'pollux' ), self::MIN_WORDPRESS_VERSION ),
301
			$this->notice->button( __( 'Update WordPress', 'pollux' ), self_admin_url( 'update-core.php' )),
302
		]);
303
	}
304
305
	/**
306
	 * @param string $error