private static function sanitize(array &$data)
    {
        $blackList = array_combine(self::config()->loggingBlacklist, self::config()->loggingBlacklist);
        array_walk_recursive($data, function (&$value, $key) use ($blackList) {
            if (isset($blackList[$key])) {
                $value = '(sanitized)';
            }
        });
    }
private static function sanitize(array &$data)
    {
        $blackList = array_combine(self::config()->loggingBlacklist, self::config()->loggingBlacklist);
        array_walk_recursive($data, function (&$value, $key) use ($blackList) {
            if (isset($blackList[$key])) {
                $value = '(sanitized)';
            }
        });
    }
private static function sanitize ( array & $ data ) { $ blackList = array_combine ( self :: config ( ) -> loggingBlacklist , self :: config ( ) -> loggingBlacklist ) ; array_walk_recursive ( $ data , function ( & $ value , $ key ) use ( $ blackList ) { if ( isset ( $ blackList [ $ key ] ) ) { $ value = '(sanitized)' ; } } ) ; }
Clean out sensitive data, such as credit-card numbers
@param array $data
Clean out sensitive data such as credit - card numbers