Sindbad~EG File Manager

Current Path : /proc/142261/cwd/plugins/webp-converter-for-media/src/Error/Detector/
Upload File :
Current File : //proc/142261/cwd/plugins/webp-converter-for-media/src/Error/Detector/UnsupportedServerDetector.php

<?php

namespace WebpConverter\Error\Detector;

use WebpConverter\Error\Notice\UnsupportedPlaygroundServerNotice;

/**
 * Checks for configuration errors about unsupported servers.
 */
class UnsupportedServerDetector implements DetectorInterface {

	/**
	 * {@inheritdoc}
	 */
	public function get_error() {
		if ( strpos( $_SERVER['SERVER_NAME'] ?? '', 'playground.wordpress.net' ) !== false ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
			return new UnsupportedPlaygroundServerNotice();
		}

		return null;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists