Rename method and variables for clarity

[MAILPOET-2624]
This commit is contained in:
Amine Ben hammou
2020-01-13 09:49:29 +01:00
committed by Jack Kitterhing
parent 5d59f53834
commit d2494469c0
6 changed files with 12 additions and 12 deletions

View File

@@ -33,12 +33,12 @@ class Subscribers {
return $subscribers_count > $limit;
}
public function hasAPIKey() {
public function hasValidApiKey() {
return $this->hasValidMssKey() || $this->hasValidPremiumKey();
}
public function getSubscribersLimit() {
if (!$this->hasAPIKey()) {
if (!$this->hasValidApiKey()) {
return $this->getFreeSubscribersLimit();
}