Use underscore to unify naming

[MAILPOET-2639]
This commit is contained in:
Pavel Dohnal
2020-01-30 08:36:23 +01:00
committed by Jack Kitterhing
parent 1c1f0313f0
commit f001542b3e
6 changed files with 23 additions and 23 deletions

View File

@@ -72,13 +72,13 @@ class DisplayFormInWPContent {
private function shouldDisplayFormBellowContent(FormEntity $form): bool {
$settings = $form->getSettings();
if (!is_array($settings)) return false;
if (!isset($settings['placeFormBellowAllPosts'])) return false;
if (!isset($settings['place_form_bellow_all_posts'])) return false;
if (
($settings['placeFormBellowAllPosts'] === '1')
($settings['place_form_bellow_all_posts'] === '1')
&& $this->wp->isSingular('post')
) return true;
if (
($settings['placeFormBellowAllPages'] === '1')
($settings['place_form_bellow_all_pages'] === '1')
&& $this->wp->isPage()
) return true;
return false;