Scala code formatting