Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@@ -7,33 +7,33 @@ use MailPoetVendor\Carbon\Carbon;
class BridgeTestMockAPI extends API {
public $api_key;
function __construct($api_key) {
public function __construct($api_key) {
$this->setKey($api_key);
}
function checkMSSKey() {
public function checkMSSKey() {
// if a key begins with these codes, return them
$regex = '/^(expiring|401|402|403|503)/';
$code = preg_match($regex, $this->api_key, $m) ? $m[1] : 200;
return $this->processAPICheckResponse($code);
}
function checkPremiumKey() {
public function checkPremiumKey() {
// if a key begins with these codes, return them
$regex = '/^(expiring|401|402|403|503)/';
$code = preg_match($regex, $this->api_key, $m) ? $m[1] : 200;
return $this->processPremiumResponse($code);
}
function updateSubscriberCount($count) {
public function updateSubscriberCount($count) {
return true;
}
function setKey($api_key) {
public function setKey($api_key) {
$this->api_key = $api_key;
}
function getKey() {
public function getKey() {
return $this->api_key;
}