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

@@ -8,11 +8,11 @@ class Url {
/** @var WPFunctions */
private $wp;
function __construct(WPFunctions $wp) {
public function __construct(WPFunctions $wp) {
$this->wp = $wp;
}
function getCurrentUrl() {
public function getCurrentUrl() {
$home_url = parse_url($this->wp->homeUrl());
$query_args = $this->wp->addQueryArg(null, null);
@@ -24,12 +24,12 @@ class Url {
return $this->wp->homeUrl($query_args);
}
function redirectTo($url = null) {
public function redirectTo($url = null) {
$this->wp->wpSafeRedirect($url);
exit();
}
function redirectBack($params = []) {
public function redirectBack($params = []) {
// check mailpoet_redirect parameter
$referer = (isset($_POST['mailpoet_redirect'])
? $_POST['mailpoet_redirect']
@@ -50,7 +50,7 @@ class Url {
exit();
}
function redirectWithReferer($url = null) {
public function redirectWithReferer($url = null) {
$current_url = $this->getCurrentUrl();
$url = $this->wp->addQueryArg(
[