Fix naming coding style in Menu class
[MAILPOET-2200]
This commit is contained in:
committed by
M. Shull
parent
cb1dd28ea9
commit
f07b6da00c
@@ -39,8 +39,9 @@ class Menu {
|
|||||||
|
|
||||||
/** @var WPFunctions */
|
/** @var WPFunctions */
|
||||||
private $wp;
|
private $wp;
|
||||||
|
|
||||||
/** @var ServicesChecker */
|
/** @var ServicesChecker */
|
||||||
private $servicesChecker;
|
private $services_checker;
|
||||||
|
|
||||||
/** @var ContainerWrapper */
|
/** @var ContainerWrapper */
|
||||||
private $container;
|
private $container;
|
||||||
@@ -50,13 +51,13 @@ class Menu {
|
|||||||
function __construct(
|
function __construct(
|
||||||
AccessControl $access_control,
|
AccessControl $access_control,
|
||||||
WPFunctions $wp,
|
WPFunctions $wp,
|
||||||
ServicesChecker $servicesChecker,
|
ServicesChecker $services_checker,
|
||||||
ContainerWrapper $containerWrapper
|
ContainerWrapper $container
|
||||||
) {
|
) {
|
||||||
$this->access_control = $access_control;
|
$this->access_control = $access_control;
|
||||||
$this->wp = $wp;
|
$this->wp = $wp;
|
||||||
$this->servicesChecker = $servicesChecker;
|
$this->services_checker = $services_checker;
|
||||||
$this->container = $containerWrapper;
|
$this->container = $container;
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
@@ -532,7 +533,7 @@ class Menu {
|
|||||||
if (self::isOnMailPoetAdminPage()) {
|
if (self::isOnMailPoetAdminPage()) {
|
||||||
$show_notices = isset($_REQUEST['page'])
|
$show_notices = isset($_REQUEST['page'])
|
||||||
&& stripos($_REQUEST['page'], self::MAIN_PAGE_SLUG) === false;
|
&& stripos($_REQUEST['page'], self::MAIN_PAGE_SLUG) === false;
|
||||||
$checker = $checker ?: $this->servicesChecker;
|
$checker = $checker ?: $this->services_checker;
|
||||||
$this->mp_api_key_valid = $checker->isMailPoetAPIKeyValid($show_notices);
|
$this->mp_api_key_valid = $checker->isMailPoetAPIKeyValid($show_notices);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -540,7 +541,7 @@ class Menu {
|
|||||||
function checkPremiumKey(ServicesChecker $checker = null) {
|
function checkPremiumKey(ServicesChecker $checker = null) {
|
||||||
$show_notices = isset($_SERVER['SCRIPT_NAME'])
|
$show_notices = isset($_SERVER['SCRIPT_NAME'])
|
||||||
&& stripos($_SERVER['SCRIPT_NAME'], 'plugins.php') !== false;
|
&& stripos($_SERVER['SCRIPT_NAME'], 'plugins.php') !== false;
|
||||||
$checker = $checker ?: $this->servicesChecker;
|
$checker = $checker ?: $this->services_checker;
|
||||||
$this->premium_key_valid = $checker->isPremiumKeyValid($show_notices);
|
$this->premium_key_valid = $checker->isPremiumKeyValid($show_notices);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user