Convert variable names to camel case

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-09 15:02:58 +01:00
committed by Jan Jakeš
parent f5da704106
commit 54549ff037
687 changed files with 15890 additions and 15887 deletions

View File

@@ -24,38 +24,38 @@ class Help {
/** @var Beacon */
private $helpscout_beacon;
public function __construct(PageRenderer $page_renderer, State $tasks_state, CronHelper $cron_helper, Beacon $helpscout_beacon) {
$this->page_renderer = $page_renderer;
$this->tasks_state = $tasks_state;
$this->cron_helper = $cron_helper;
$this->helpscout_beacon = $helpscout_beacon;
public function __construct(PageRenderer $pageRenderer, State $tasksState, CronHelper $cronHelper, Beacon $helpscoutBeacon) {
$this->pageRenderer = $pageRenderer;
$this->tasksState = $tasksState;
$this->cronHelper = $cronHelper;
$this->helpscoutBeacon = $helpscoutBeacon;
}
public function render() {
$system_info_data = $this->helpscout_beacon->getData();
$cron_ping_response = $this->cron_helper->pingDaemon();
$system_status_data = [
$systemInfoData = $this->helpscoutBeacon->getData();
$cronPingResponse = $this->cronHelper->pingDaemon();
$systemStatusData = [
'cron' => [
'url' => $this->cron_helper->getCronUrl(CronDaemon::ACTION_PING),
'isReachable' => $this->cron_helper->validatePingResponse($cron_ping_response),
'pingResponse' => $cron_ping_response,
'url' => $this->cronHelper->getCronUrl(CronDaemon::ACTION_PING),
'isReachable' => $this->cronHelper->validatePingResponse($cronPingResponse),
'pingResponse' => $cronPingResponse,
],
'mss' => [
'enabled' => (Bridge::isMPSendingServiceEnabled()) ?
['isReachable' => Bridge::pingBridge()] :
false,
],
'cronStatus' => $this->cron_helper->getDaemon(),
'cronStatus' => $this->cronHelper->getDaemon(),
'queueStatus' => MailerLog::getMailerLog(),
];
$system_status_data['cronStatus']['accessible'] = $this->cron_helper->isDaemonAccessible();
$system_status_data['queueStatus']['tasksStatusCounts'] = $this->tasks_state->getCountsPerStatus();
$system_status_data['queueStatus']['latestTasks'] = $this->tasks_state->getLatestTasks(Sending::TASK_TYPE);
$this->page_renderer->displayPage(
$systemStatusData['cronStatus']['accessible'] = $this->cronHelper->isDaemonAccessible();
$systemStatusData['queueStatus']['tasksStatusCounts'] = $this->tasksState->getCountsPerStatus();
$systemStatusData['queueStatus']['latestTasks'] = $this->tasksState->getLatestTasks(Sending::TASK_TYPE);
$this->pageRenderer->displayPage(
'help.html',
[
'systemInfoData' => $system_info_data,
'systemStatusData' => $system_status_data,
'systemInfoData' => $systemInfoData,
'systemStatusData' => $systemStatusData,
]
);
}