@@ -14,11 +14,11 @@ public function __construct(private PersistentState &$state)
1414 /**
1515 * Handles the incoming HTTP request and generates the appropriate response.
1616 *
17- * @param string $method The HTTP method of the request (e.g., 'GET', 'POST').
18- * @param ServerRequestInterface|string $request The request payload, typically used for 'POST' requests.
19- * @param string &$response The variable to store the generated response.
20- * @param array &$content_type The variable to store the content type of the response.
21- * @param string &$body The variable to store the body of the response.
17+ * @param string $method The HTTP method of the request (e.g., 'GET', 'POST').
18+ * @param ServerRequestInterface|string $request The request payload, typically used for 'POST' requests.
19+ * @param string &$response The variable to store the generated response.
20+ * @param array &$content_type The variable to store the content type of the response.
21+ * @param string &$body The variable to store the body of the response.
2222 */
2323 public function handle (string $ method , ServerRequestInterface |string $ request , int |string &$ response , array &$ content_type , string &$ body , bool $ bypass_token = false ): void
2424 {
@@ -41,9 +41,9 @@ public function handle(string $method, ServerRequestInterface|string $request, i
4141 /**
4242 * Handles the GET request and prepares the response.
4343 *
44- * @param string &$response The response string to be sent back to the client.
45- * @param array &$content_type The variable to store the content type of the response.
46- * @param string &$body The variable to store the body of the response.
44+ * @param string &$response The response string to be sent back to the client.
45+ * @param array &$content_type The variable to store the content type of the response.
46+ * @param string &$body The variable to store the body of the response.
4747 *
4848 * This method sets the HTTP status code to 200 OK and the Content-Type to application/json.
4949 * It then appends the JSON-encoded verification list to the response.
@@ -58,10 +58,10 @@ private function get(int|string &$response, array &$content_type, string &$body)
5858 /**
5959 * Handles POST requests by parsing the request data and performing actions based on the method type.
6060 *
61- * @param ServerRequestInterface|string $request The raw HTTP request string.
62- * @param string &$response The response string to be modified based on the request handling.
63- * @param array &$content_type The variable to store the content type of the response.
64- * @param string &$body The variable to store the body of the response.
61+ * @param ServerRequestInterface|string $request The raw HTTP request string.
62+ * @param string &$response The response string to be modified based on the request handling.
63+ * @param array &$content_type The variable to store the content type of the response.
64+ * @param string &$body The variable to store the body of the response.
6565 *
6666 * The function performs the following steps:
6767 * 1. Extracts the raw data from the request.
@@ -141,12 +141,12 @@ private function post(ServerRequestInterface|string $request, int|string &$respo
141141 * If neither exists, it adds the new entry to the list, writes the updated list to a JSON file,
142142 * updates the state, and sets the response to a 200 OK status.
143143 *
144- * @param array $list The list of existing entries.
145- * @param string $ckey The ckey to be verified.
146- * @param string $discord The discord identifier to be verified.
147- * @param string &$response The response message to be set based on the verification result.
148- * @param array &$content_type The variable to store the content type of the response.
149- * @param string &$body The variable to store the body of the response.
144+ * @param array $list The list of existing entries.
145+ * @param string $ckey The ckey to be verified.
146+ * @param string $discord The discord identifier to be verified.
147+ * @param string &$response The response message to be set based on the verification result.
148+ * @param array &$content_type The variable to store the content type of the response.
149+ * @param string &$body The variable to store the body of the response.
150150 */
151151 private function __post (array &$ list , string $ ckey , string $ discord , int |string &$ response , array &$ content_type , string &$ body ): void
152152 {
@@ -175,10 +175,10 @@ private function __post(array &$list, string $ckey, string $discord, int|string
175175 * Handles the deletion of an item from the list.
176176 *
177177 * @param int|string|false $existingIndex The index of the item to delete, or false if the item does not exist.
178- * @param array &$list The list from which the item will be deleted.
179- * @param string &$response The HTTP response message to be returned.
180- * @param array &$content_type The variable to store the content type of the response.
181- * @param string &$body The variable to store the body of the response.
178+ * @param array &$list The list from which the item will be deleted.
179+ * @param string &$response The HTTP response message to be returned.
180+ * @param array &$content_type The variable to store the content type of the response.
181+ * @param string &$body The variable to store the body of the response.
182182 */
183183 private function delete (int |string |false $ existingIndex , array &$ list , int |string &$ response , array &$ content_type , string &$ body ): void
184184 {
0 commit comments