From 96f1d7f0a240ea20a82e9dd750b63ad14c90be08 Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Sun, 2 Apr 2023 00:36:52 +0400 Subject: [PATCH] Update post controller --- api/Controllers/v1/Quran.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/Controllers/v1/Quran.php b/api/Controllers/v1/Quran.php index 81b60c0..20f5990 100644 --- a/api/Controllers/v1/Quran.php +++ b/api/Controllers/v1/Quran.php @@ -101,10 +101,10 @@ public function createEdition(ServerRequestInterface $request, ResponseInterface $yml = (object) Yaml::parse($info); $ayahs = explode("\n", $text); - // TODO: Add duplicate check in edition to number of ayahs + // TODO: Add duplicate check in addition to number of ayahs if (count($ayahs) !== 6236) { return Http\Response::json($response, - 'edition.txt must contain 6236 lines.', + 'edition.txt must contain 6236 lines. It currently contains ' . count($ayahs) . '.', 400 ); } @@ -163,4 +163,4 @@ public function createEdition(ServerRequestInterface $request, ResponseInterface } -} \ No newline at end of file +}