src/Algorithms.php
protected function getValidAlgorithm($class)
    {
        $logging = \Plop\Plop::getInstance();;
        $w =    'abcdefghijklmnopqrstuvwxyz' .
                'ABCDEFGHIJKLMNOPQRSTUVWXYZ' .
                '1234567890-@.';
        $name = $class::getName();
        if (!is_string($name) || strspn($name, $w) !== strlen($name)) {
            $logging->debug(
                'Skipping algorithm "%(name)s" (invalid algorithm name)',
                array('name' => $name)
            );
            return null;
        }
        return $name;
    }
protected function getValidAlgorithm($class)
    {
        $logging = \Plop\Plop::getInstance();;
        $w =    'abcdefghijklmnopqrstuvwxyz' .
                'ABCDEFGHIJKLMNOPQRSTUVWXYZ' .
                '1234567890-@.';
        $name = $class::getName();
        if (!is_string($name) || strspn($name, $w) !== strlen($name)) {
            $logging->debug(
                'Skipping algorithm "%(name)s" (invalid algorithm name)',
                array('name' => $name)
            );
            return null;
        }
        return $name;
    }
protected function getValidAlgorithm ( $ class ) { $ logging = \ Plop \ Plop :: getInstance ( ) ; ; $ w = 'abcdefghijklmnopqrstuvwxyz' . 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' . '1234567890-@.' ; $ name = $ class :: getName ( ) ; if ( ! is_string ( $ name ) || strspn ( $ name , $ w ) !== strlen ( $ name ) ) { $ logging -> debug ( 'Skipping algorithm "%(name)s" (invalid algorithm name)' , array ( 'name' => $ name ) ) ; return null ; } return $ name ; }
Check for valid algorithm names.

\param string $class
Name of the class whose algorithm name must be checked.

\retval string
The class' algorithm name.

\retval null
No valid algorithm name for the given class.
Check for valid algorithm names .