Run Rector on your code to see what it can do for you:
{ public function run() { - if ( $user_id === 0 ) { - // some important comment - $access = true; - } else { - // some another important comment - $access = false; - } + $access = $user_id === 0 ? true : false; } }
Applied Rules:
Not a change you expect?
rector.php