PhpSandbox\PHPSandbox::normalizeInterface PHP Méthode

normalizeInterface() protected méthode

Normalize interface name. This is an internal PHPSandbox function.
protected normalizeInterface ( string | array $name ) : string | array
$name string | array String of the interface $name, or array of strings to normalize
Résultat string | array Returns the normalized interface string or an array of normalized strings
    protected function normalizeInterface($name)
    {
        if (is_array($name)) {
            foreach ($name as &$value) {
                $value = $this->normalizeInterface($value);
            }
            return $name;
        }
        return strtolower($name);
    }
PHPSandbox