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,7 +20,7 @@ class AssetsController {
const RECAPTCHA_API_URL = 'https://www.google.com/recaptcha/api.js?onload=reCaptchaCallback&render=explicit';
function __construct(WPFunctions $wp, BasicRenderer $renderer, SettingsController $settings) {
public function __construct(WPFunctions $wp, BasicRenderer $renderer, SettingsController $settings) {
$this->wp = $wp;
$this->renderer = $renderer;
$this->settings = $settings;
@ -30,7 +30,7 @@ class AssetsController {
* Returns assets scripts tags as string
* @return string
*/
function printScripts() {
public function printScripts() {
ob_start();
$this->wp->wpPrintScripts('jquery');
$this->wp->wpPrintScripts('mailpoet_vendor');
@ -41,7 +41,7 @@ class AssetsController {
return $scripts;
}
function setupFrontEndDependencies() {
public function setupFrontEndDependencies() {
$this->wp->wpEnqueueStyle(
'mailpoet_public',
Env::$assets_url . '/dist/css/' . $this->renderer->getCssAsset('public.css')
@ -96,7 +96,7 @@ EOL;
);
}
function setupAdminWidgetPageDependencies() {
public function setupAdminWidgetPageDependencies() {
$this->wp->wpEnqueueScript(
'mailpoet_vendor',
Env::$assets_url . '/dist/js/' . $this->renderer->getJsAsset('vendor.js'),