Run Rector on your code to see what it can do for you:
<?php explode(',', -(string) $getInstance->get() +(string) (string) $getInstance->get() ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR'] ?? '', );
Applied Rules:
Not a change you expect?
rector.php