HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: //var/chroot/var/www/wp-content/mu-plugins/vendor/wpex/stock-photos/bin/wpaas-mock.php
<?php

namespace WPaaS;

/**
 * Class Plugin to mock behavior of GD system plugin
 *
 * @package WPaaS
 */
class Plugin {

	/**
	 * Mocker to return config for jenkins build
	 *
	 * @param $name
	 *
	 * @return mixed
	 */
	public static function config( $name ) {

		$config = [
			'd3.token'      => '53dacdceba099a43ed4fb45b491b16c4afb37d48',
			'd3.categories' => json_decode( file_get_contents( __DIR__ . '/d3-categories.json' ) ),
			'imageApi.url'  => 'http://isteam.wsimg.com/stock/',
		];

		return $config[ $name ];

	}

	/**
	 * Mocker to let jenkins know we are on the platform
	 *
	 * @return bool
	 */
	public static function is_wpaas() {

		return true;

	}

}