Skip to content

Commit e9f6665

Browse files
committed
getUniqueIdChecker()
- update PHPDoc
1 parent e6f80da commit e9f6665

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/IdProviderFactory.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ private static function dbExecute() {
5959
}
6060

6161
/**
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.
6465
*
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.
6768
*/
6869
private static function getUniqueIdChecker() {
6970
return function ( $text ) {

0 commit comments

Comments
 (0)