HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/imspa.co.uk/public_html/wp-content/themes/iris-wp/lib/colibriwp/src/Customizer/Formatter.php
<?php
/**
 * Created by PhpStorm.
 * User: Extend Studio
 * Date: 3/19/2019
 * Time: 5:35 PM
 */

namespace ColibriWP\Theme\Customizer;

class Formatter {

	public static function sanitizeControlValue( $control_type, $value ) {
		switch ( $control_type ) {
			case 'switch':
				$value = ! ! intval( $value );
				break;
		}

		return $value;
	}
}