You are here

private function Redis_Path_AbstractHashLookup::normalize in Redis 7.3

Normalize value to avoid duplicate or false negatives

Parameters

string $value:

Return value

string

4 calls to Redis_Path_AbstractHashLookup::normalize()
Redis_Path_AbstractHashLookup::deleteAlias in lib/Redis/Path/AbstractHashLookup.php
Alias is being deleted for the given source
Redis_Path_AbstractHashLookup::lookupAlias in lib/Redis/Path/AbstractHashLookup.php
Lookup any alias for the given source
Redis_Path_AbstractHashLookup::lookupSource in lib/Redis/Path/AbstractHashLookup.php
Lookup any source for the given alias
Redis_Path_AbstractHashLookup::saveAlias in lib/Redis/Path/AbstractHashLookup.php
Alias is being inserted with the given source

File

lib/Redis/Path/AbstractHashLookup.php, line 43

Class

Redis_Path_AbstractHashLookup
Common implementation for Redis-based implementations

Code

private function normalize($value) {
  if (null !== $value) {
    return strtolower(trim($value));
  }
}