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

@ -19,7 +19,7 @@ class Captcha {
/** @var CaptchaSession */
private $captcha_session;
function __construct(WPFunctions $wp = null, CaptchaSession $captcha_session = null) {
public function __construct(WPFunctions $wp = null, CaptchaSession $captcha_session = null) {
if ($wp === null) {
$wp = new WPFunctions;
}
@ -30,11 +30,11 @@ class Captcha {
$this->captcha_session = $captcha_session;
}
function isSupported() {
public function isSupported() {
return extension_loaded('gd') && function_exists('imagettftext');
}
function isRequired($subscriber_email = null) {
public function isRequired($subscriber_email = null) {
if ($this->isUserExemptFromCaptcha()) {
return false;
}
@ -81,7 +81,7 @@ class Captcha {
return !empty(array_intersect($roles, (array)$user->roles));
}
function renderImage($width = null, $height = null, $session_id = null, $return = false) {
public function renderImage($width = null, $height = null, $session_id = null, $return = false) {
if (!$this->isSupported()) {
return false;
}