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

@ -20,11 +20,11 @@ class RequirementsChecker {
'\Html2Text\Html2Text',
];
function __construct($display_error_notice = true) {
public function __construct($display_error_notice = true) {
$this->display_error_notice = $display_error_notice;
}
function checkAllRequirements() {
public function checkAllRequirements() {
$available_tests = [
self::TEST_PDO_EXTENSION,
self::TEST_FOLDER_PERMISSIONS,
@ -42,7 +42,7 @@ class RequirementsChecker {
return $results;
}
function checkTempAndCacheFolderCreation() {
public function checkTempAndCacheFolderCreation() {
$paths = [
'temp_path' => Env::$temp_path,
'cache_path' => Env::$cache_path,
@ -67,7 +67,7 @@ class RequirementsChecker {
return true;
}
function checkPDOExtension() {
public function checkPDOExtension() {
if (extension_loaded('pdo') && extension_loaded('pdo_mysql')) return true;
$error = Helpers::replaceLinkTags(
WPFunctions::get()->__('MailPoet requires a PDO_MYSQL PHP extension. Please read our [link]instructions[/link] on how to resolve this issue.', 'mailpoet'),
@ -77,14 +77,14 @@ class RequirementsChecker {
return $this->processError($error);
}
function checkMbstringExtension() {
public function checkMbstringExtension() {
if (!extension_loaded('mbstring')) {
require_once Env::$util_path . '/Polyfills.php';
}
return true;
}
function checkXmlExtension() {
public function checkXmlExtension() {
if (extension_loaded('xml')) return true;
$error = Helpers::replaceLinkTags(
WPFunctions::get()->__('MailPoet requires an XML PHP extension. Please read our [link]instructions[/link] on how to resolve this issue.', 'mailpoet'),
@ -94,7 +94,7 @@ class RequirementsChecker {
return $this->processError($error);
}
function checkVendorSource() {
public function checkVendorSource() {
foreach ($this->vendor_classes as $dependency) {
$dependency_path = $this->getDependencyPath($dependency);
if (!$dependency_path) {
@ -131,7 +131,7 @@ class RequirementsChecker {
}
}
function processError($error) {
public function processError($error) {
if ($this->display_error_notice) {
WPNotice::displayError($error);
}