Add space between if and ‘(‘

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 13:08:49 +01:00
committed by M. Shull
parent a935b091d3
commit 3ee58aea10
333 changed files with 4001 additions and 4001 deletions

View File

@ -1,7 +1,7 @@
<?php
namespace MailPoet\Form\Block;
if(!defined('ABSPATH')) exit;
if (!defined('ABSPATH')) exit;
class Select extends Base {
@ -15,10 +15,10 @@ class Select extends Base {
$html .= static::renderLabel($block);
$html .= '<select class="mailpoet_select" name="'.$field_name.'" ' . $automation_id . '>';
if(isset($block['params']['label_within']) && $block['params']['label_within']) {
if (isset($block['params']['label_within']) && $block['params']['label_within']) {
$html .= '<option value="">'.static::getFieldLabel($block).'</option>';
} else {
if(empty($block['params']['required']) || !$block['params']['required']) {
if (empty($block['params']['required']) || !$block['params']['required']) {
$html .= '<option value="">-</option>';
}
}
@ -29,7 +29,7 @@ class Select extends Base {
);
foreach ($options as $option) {
if(!empty($option['is_hidden'])) {
if (!empty($option['is_hidden'])) {
continue;
}
@ -41,7 +41,7 @@ class Select extends Base {
$is_disabled = (!empty($option['is_disabled'])) ? ' disabled="disabled"' : '';
if(is_array($option['value'])) {
if (is_array($option['value'])) {
$value = key($option['value']);
$label = reset($option['value']);
} else {