protected function normalizeMagicConst($name) { if (is_array($name)) { foreach ($name as &$value) { $value = $this->normalizeMagicConst($value); } return $name; } return strtoupper(trim($name, '_')); }