Don't use a shell command here.  Use `process-lines` to directly call `phpcs`.