Add space between for and ‘(‘

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 12:48:07 +01:00
committed by M. Shull
parent b2e5952896
commit fba2914392
20 changed files with 44 additions and 44 deletions

View File

@ -142,7 +142,7 @@ class Date extends Base {
// empty value label
$html .= '<option value="">'.__('Month', 'mailpoet').'</option>';
for($i = 1; $i < 13; $i++) {
for ($i = 1; $i < 13; $i++) {
$is_selected = ($i === $block['selected']) ? 'selected="selected"' : '';
$html .= '<option value="'.$i.'" '.$is_selected.'>';
$html .= $month_names[$i - 1];
@ -173,7 +173,7 @@ class Date extends Base {
$html .= '<option value="">'.__('Year', 'mailpoet').'</option>';
// return years as an array
for($i = (int)$block['to']; $i > (int)($block['from'] - 1); $i--) {
for ($i = (int)$block['to']; $i > (int)($block['from'] - 1); $i--) {
$is_selected = ($i === $block['selected']) ? 'selected="selected"' : '';
$html .= '<option value="'.$i.'" '.$is_selected.'>'.$i.'</option>';
}
@ -199,7 +199,7 @@ class Date extends Base {
$html .= '<option value="">'.__('Day', 'mailpoet').'</option>';
// return days as an array
for($i = 1; $i < 32; $i++) {
for ($i = 1; $i < 32; $i++) {
$is_selected = ($i === $block['selected']) ? 'selected="selected"' : '';
$html .= '<option value="'.$i.'" '.$is_selected.'>'.$i.'</option>';
}
@ -287,4 +287,4 @@ class Date extends Base {
}
return $datetime;
}
}
}