Sindbad~EG File Manager

Current Path : /home/xiedrke/entrepot/wp-content/plugins/realpress/app/Helpers/
Upload File :
Current File : /home/xiedrke/entrepot/wp-content/plugins/realpress/app/Helpers/Debug.php

<?php

namespace RealPress\Helpers;

/**
 * Class Debug
 * @package RealPress\Helpers
 */
class Debug {
	/**
	 * @return bool
	 */
	public static function is_debug(): bool {
		return Settings::get_setting_detail( 'group:advanced:fields:debug_mode' ) === 'on';
	}

	/**
	 * @param mixed $variable
	 * @param string $file_path
	 * @param string $line
	 *
	 * @return void
	 */
	public static function var_dump( $variable, string $file_path = '', string $line = '' ) {
		echo '<pre>' . print_r( Validation::sanitize_params_submitted( $variable ), true ) . '</pre>';
		echo 'FILE:' . esc_html( $file_path ) . '<br> LINE:' . esc_html( $line );
	}
}

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