Skip to content

Commit bc37f58

Browse files
committed
[GT-184] Fix for minor improvements
1 parent 4c6e237 commit bc37f58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/ManageAPICredentials/ManageAPICredentialsActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private function getRenewalsBodyContent(
352352

353353
$body = "Dear " . $user->getForename() . ",\n\n" .
354354
"The API credential associated with the following identifier\n" .
355-
"registered at site $siteName has not been renewed from\n" .
355+
"registered at site $siteName has not been renewed for\n" .
356356
"the last $elapsedMonths months and will be deleted if it " .
357357
"reaches $deletionThreshold months.\n\n";
358358

resources/ManageAPICredentials/ManageUnusedAPICredentialsOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getOptions()
5757
}
5858

5959
$this->dryRun = isset($given['dry-run']);
60-
$this->hasOptionProvided($given);
60+
$this->tryToObtainDatetime($given);
6161
$this->setPropertyName();
6262
$this->delete = $this->getValOption($given, 'deletion_threshold', 'd');
6363
$this->warn = $this->getValOption($given, 'warning_threshold', 'w');
@@ -204,7 +204,7 @@ public function getThreshold()
204204
* @throws InvalidArgumentException When the user is NOT specifying
205205
* which datetime to obtain.
206206
*/
207-
private function hasOptionProvided($given)
207+
private function tryToObtainDatetime($given)
208208
{
209209
$this->isRenewalRequest = $this->getBoolOption($given, 'renewals', 'r');
210210

0 commit comments

Comments
 (0)