The code below is part of a long line of if...elseif...else statment block where I am parsing a command as entered via a PHP CLI.
I hate the formatting. It follows the PSR, but it's still no fun to read.
Can anyone offer suggestions on how to clean this up so it is hyper-readable? Code runs perfectly, but it is hard to visually distguish where one set of code for a command ends and the next one starts.
$cmd = an object, which has methods for parsing and cleaning up commands.