Skip to content

Commit

Permalink
Update post controller
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Apr 1, 2023
1 parent edb65f7 commit 96f1d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/Controllers/v1/Quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down Expand Up @@ -163,4 +163,4 @@ public function createEdition(ServerRequestInterface $request, ResponseInterface

}

}
}

0 comments on commit 96f1d7f

Please sign in to comment.