From ca9141ef5a15c28950b37a5738eed3a5701d4dff Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Fri, 13 Dec 2019 17:42:24 -0500 Subject: [PATCH] Code format --- .../play/twirl/compiler/TwirlCompiler.scala | 53 +++++++++---------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala index 64436275..d455c317 100644 --- a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala +++ b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala @@ -539,14 +539,13 @@ package """ :+ packageName :+ """ val resp = PresentationCompiler.global .askForResponse { () => val functionType = "(" + params - .map( - group => - "(" + group - .map { - case ByNameParam(_, paramType) => " => " + paramType - case a => filterType(a.tpt.toString) - } - .mkString(",") + ")" + .map(group => + "(" + group + .map { + case ByNameParam(_, paramType) => " => " + paramType + case a => filterType(a.tpt.toString) + } + .mkString(",") + ")" ) .mkString(" => ") + " => " + returnType + ")" @@ -559,16 +558,15 @@ package """ :+ packageName :+ """ .mkString(",") + ")", returnType, params - .map( - group => - "(" + group - .map { p => - p.name.toString + Option(p.tpt.toString) - .filter(_.startsWith("_root_.scala.")) - .map(_ => ".toIndexedSeq:_*") - .getOrElse("") - } - .mkString(",") + ")" + .map(group => + "(" + group + .map { p => + p.name.toString + Option(p.tpt.toString) + .filter(_.startsWith("_root_.scala.")) + .map(_ => ".toIndexedSeq:_*") + .getOrElse("") + } + .mkString(",") + ")" ) .mkString ) @@ -588,16 +586,15 @@ package """ :+ packageName :+ """ functionType, params.map(group => "(" + group.map(_.name.toString).mkString(",") + ")").mkString(" => "), params - .map( - group => - "(" + group - .map { p => - p.name.toString + Option(p.tpt.toString) - .filter(_.startsWith("_root_.scala.")) - .map(_ => ".toIndexedSeq:_*") - .getOrElse("") - } - .mkString(",") + ")" + .map(group => + "(" + group + .map { p => + p.name.toString + Option(p.tpt.toString) + .filter(_.startsWith("_root_.scala.")) + .map(_ => ".toIndexedSeq:_*") + .getOrElse("") + } + .mkString(",") + ")" ) .mkString )