Skip to content

Commit 5728cd9

Browse files
committed
[GT-184] Update comments
1 parent e5318ab commit 5728cd9

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

htdocs/web_portal/views/site/edit_api_auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if ($params['isRenewalRequest']) {
3030
echo("WARNING: Renewing this will change the linked user from '");
3131
} else {
32-
echo("WARNING: editing will change the linked user from '");
32+
echo("WARNING: Editing will change the linked user from '");
3333
}
3434
xecho($entUser->getFullname());
3535
echo("' to '");
@@ -79,7 +79,7 @@ class="input_input_text"
7979
<?php if (!($params['isRenewalRequest'])) {?>
8080
<div style="margin-bottom: 1em">
8181
<div class="input_warning">
82-
WARNING: it is possible to delete information using the write functionality of the API.
82+
WARNING: It is possible to delete information using the write functionality of the API.
8383
Leave Allow API write unchecked if you do not need to write data.
8484
</div>
8585

lib/Gocdb_Services/APIAuthenticationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function deleteAPIAuthentication(\APIAuthentication $authEntity)
152152
*
153153
* @param \APIAuthentication Entity to update
154154
* @param \User Owning user
155-
* @param mixed $newValues Holds the new values.
155+
* @param mixed $newValues Holds the new data for updating the `APIAuthentication` entity.
156156
*
157157
* @throws \Exception on error with commit rolled back
158158
*/

lib/Gocdb_Services/Site.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,13 @@ public function deleteAPIAuthEntity(\APIAuthentication $authEntity, \User $user)
14291429
$authEntServ->deleteAPIAuthentication($authEntity);
14301430
}
14311431

1432+
/**
1433+
* Helper to edit an `APIAuthentication` entity.
1434+
*
1435+
* @param \APIAuthentication $authEntity `APIAuthentication` entity to check.
1436+
* @param \User $user User doing the edit.
1437+
* @param mixed $newValues Holds the new data for updating the `APIAuthentication` entity.
1438+
*/
14321439
public function editAPIAuthEntity(\APIAuthentication $authEntity, \User $user, $newValues)
14331440
{
14341441
$parentSite = $authEntity->getParentSite();

0 commit comments

Comments
 (0)