From c2f1ba09f113bbadc48d4f814e1f98ef9a812a44 Mon Sep 17 00:00:00 2001
From: Stein Magne Bjorklund <steinmb@smbjorklund.com>
Date: Mon, 20 Sep 2021 20:11:17 +0200
Subject: [PATCH] Cleanup Importer::showInterface()

---
 classes/Importer.php | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/classes/Importer.php b/classes/Importer.php
index 82bed232..68fad458 100644
--- a/classes/Importer.php
+++ b/classes/Importer.php
@@ -336,24 +336,25 @@ final class Importer
         //$this->showFinishing();
     }
 
-    private function showInterface()
+    private function showInterface(): void
     {
-        $doc = "<html>
+        echo <<<HTML
+<html>
   	<head>
-  	<title>Importing options</title>
+        <title>Importing options</title>
   	</head>
-  	<body>
-  	<h2>Paste application described in LDA</h2>
-  	You can paste the data obtained from another LODSPeaKr instance here in the box.
-  	You can also automatize this import by adding a parameter '?import=URL' to this page.
-  	Usually, the URL will be of the for <tt>http://example.org/foo/export</tt>
-  	<form action='import' method='post'>
-  	<textarea cols='100' rows='25' name='importtext'></textarea>
-  	<input type='submit' value='Import'/>
-  	</form>
-  	</body>
-  	</html>";
-        echo $doc;
+    <body>
+        <h2>Paste application described in LDA</h2>
+        You can paste the data obtained from another LODSPeaKr instance here in the box.
+        You can also automatize this import by adding a parameter '?import=URL' to this page.
+        Usually, the URL will be of the for <pre>https://example.com/export</pre>
+        <form action='import' method='post'>
+            <textarea cols='100' rows='25' name='importtext'></textarea>
+            <input type='submit' value='Import'/>
+        </form>
+    </body>
+</html>
+HTML;
     }
 
     private function showFinishing(): void
-- 
GitLab