protected static function getFriendlyKeyName(string $key): string
    {
        if (ctype_upper(str_replace('_', '', $key))) {
            $key = strtolower($key);
        }

        return ucfirst(str_replace('_', ' ', snake_case($key)));
    }
protected static function getFriendlyKeyName(string $key): string
    {
        if (ctype_upper(str_replace('_', '', $key))) {
            $key = strtolower($key);
        }

        return ucfirst(str_replace('_', ' ', snake_case($key)));
    }
protected static function getFriendlyKeyName ( string $ key ) : string { if ( ctype_upper ( str_replace ( '_' , '' , $ key ) ) ) { $ key = strtolower ( $ key ) ; } return ucfirst ( str_replace ( '_' , ' ' , snake_case ( $ key ) ) ) ; }
Transform the key name into a friendly, formatted version

@param string $key
@return string
Transform the key name into a friendly formatted version