Doc comment missing for class method
checkServGroup
475 }
476 }
477
478 private function checkServGroup()479 {
480 $sql = "SELECT COUNT(account_id) AS acc_id_count FROM {$servGroup->loginDatabase}.login WHERE sex != 'S' AND group_id >= 0 AND account_id = ?";
481 $sth = $servGroup->connection->getStatement($sql);
Doc comment missing for class method
createTransaction
354 }
355 }
356
357 private function createTransaction($payload)358 {
359 $customArray = @unserialize(base64_decode((string)$payload['client_reference_id']));
360 $customArray = $customArray && is_array($customArray) ? $customArray : array();
Description
Documentation comments are helpful in understanding what that part of the code is responsible for. It is always a good idea to add documentation to your code to improve the code readability and maintainability. In addition to that, it becomes helpful when you revisit the code after a long time. Here, the function/class method is missing the doc comment and it is recommended to add it for the reasons discussed above.