You are here

public static function Helper::obfuscate_param in Anti Spam by CleanTalk 8.3

* Masks a value with asterisks (*) Needed by the getFieldsAny() *

Return value

string

1 call to Helper::obfuscate_param()
Helper::get_fields_any in src/lib/Cleantalk/Common/Helper.php

File

src/lib/Cleantalk/Common/Helper.php, line 607

Class

Helper
Cleantalk's hepler class

Namespace

Drupal\cleantalk\lib\Cleantalk\Common

Code

public static function obfuscate_param($value = null) {
  if ($value && (!is_object($value) || !is_array($value))) {
    $length = strlen($value);
    $value = str_repeat('*', $length);
  }
  return $value;
}