src/PhpSigep/Cache/Storage/Adapter/AbstractAdapter.php
protected function normalizeKey(&$key)
    {
        $key = (string)$key;

        if ($key === '') {
            throw new InvalidArgumentException("An empty key isn't allowed");
        } elseif (($p = $this->getOptions()->getKeyPattern()) && !preg_match($p, $key)) {
            throw new InvalidArgumentException(
                "The key '{$key}' doesn't match against pattern '{$p}'"
            );
        }
    }
protected function normalizeKey(&$key)
    {
        $key = (string)$key;

        if ($key === '') {
            throw new InvalidArgumentException("An empty key isn't allowed");
        } elseif (($p = $this->getOptions()->getKeyPattern()) && !preg_match($p, $key)) {
            throw new InvalidArgumentException(
                "The key '{$key}' doesn't match against pattern '{$p}'"
            );
        }
    }
protected function normalizeKey ( & $ key ) { $ key = ( string ) $ key ; if ( $ key === '' ) { throw new InvalidArgumentException ( "An empty key isn't allowed" ) ; } elseif ( ( $ p = $ this -> getOptions ( ) -> getKeyPattern ( ) ) && ! preg_match ( $ p , $ key ) ) { throw new InvalidArgumentException ( "The key '{$key}' doesn't match against pattern '{$p}'" ) ; } }
Validates and normalizes a key

@param  string $key
@throws InvalidArgumentException
@return void
Validates and normalizes a key