Skip to content

Commit

Permalink
[GT-184] Fix for minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sae126V committed Aug 18, 2023
1 parent 4c6e237 commit bc37f58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private function getRenewalsBodyContent(

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getOptions()
}

$this->dryRun = isset($given['dry-run']);
$this->hasOptionProvided($given);
$this->tryToObtainDatetime($given);
$this->setPropertyName();
$this->delete = $this->getValOption($given, 'deletion_threshold', 'd');
$this->warn = $this->getValOption($given, 'warning_threshold', 'w');
Expand Down Expand Up @@ -204,7 +204,7 @@ public function getThreshold()
* @throws InvalidArgumentException When the user is NOT specifying
* which datetime to obtain.
*/
private function hasOptionProvided($given)
private function tryToObtainDatetime($given)
{
$this->isRenewalRequest = $this->getBoolOption($given, 'renewals', 'r');

Expand Down

0 comments on commit bc37f58

Please sign in to comment.