File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,12 @@ private static function dbExecute() {
59
59
}
60
60
61
61
/**
62
- * Function to check if string id/title already exists, i.e. is already used as a
63
- * WikiPage (if page already exists)
62
+ * Returns a closure that checks if a string ID or title is unique by verifying whether
63
+ * the corresponding WikiPage already exists. The closure can be invoked later with a specific
64
+ * title or ID to check for its uniqueness.
64
65
*
65
- * @param string $text The title or ID to check for uniqueness of the wiki page.
66
- * @return \Closure
66
+ * @return \Closure A closure that takes a string $text as input and returns a boolean indicating
67
+ * whether the WikiPage associated with the given title/ID exists or not.
67
68
*/
68
69
private static function getUniqueIdChecker () {
69
70
return function ( $ text ) {
You can’t perform that action at this time.
0 commit comments