Common code formatting