Sindbad~EG File Manager
<?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