CBPSchedulerService::filterEventParameters: Bitrix method

      
<?php 
//  CBPSchedulerService :: filterEventParameters()
//  /dist/bitrix/modules/bizproc/classes/general/schedulerservice.php:333

    
private static function filterEventParameters(array $parameters)
    {
        
$filtered = [];
        foreach (
$parameters as $key => $parameter)
        {
            if (
is_scalar($parameter))
            {
                
$filtered[$key] = $parameter;
            }
            elseif (
is_array($parameter))
            {
                
$filtered[$key] = self::filterEventParameters($parameter);
            }
        }
        return 
$filtered;
    }