Add space between foreach and ‘(‘

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 12:52:39 +01:00
committed by M. Shull
parent fba2914392
commit ebbdec5ebd
134 changed files with 351 additions and 351 deletions

View File

@ -49,7 +49,7 @@ class Forms extends APIEndpoint {
$listing_data = $this->listing_handler->get('\MailPoet\Models\Form', $data);
$data = array();
foreach($listing_data['items'] as $form) {
foreach ($listing_data['items'] as $form) {
$form = $form->asArray();
$form['signups'] = StatisticsForms::getTotalSignups($form['id']);
@ -161,7 +161,7 @@ class Forms extends APIEndpoint {
$is_widget = false;
$widgets = get_option('widget_mailpoet_form');
if(!empty($widgets)) {
foreach($widgets as $widget) {
foreach ($widgets as $widget) {
if(isset($widget['form']) && (int)$widget['form'] === $form_id) {
$is_widget = true;
break;
@ -173,7 +173,7 @@ class Forms extends APIEndpoint {
// or if it's selected by the admin
$has_segment_selection = false;
$list_selection = [];
foreach($body as $i => $block) {
foreach ($body as $i => $block) {
if($block['type'] === 'segment') {
$has_segment_selection = true;
if(!empty($block['params']['values'])) {