Code Duplication    Length = 8-8 lines in 2 locations

src/GateKeeper.php 2 locations

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