Completed
Push — 8.x-1.x ( 47b3da...df0680 )
by Janez
02:42
created
src/Form/CropTypeForm.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@
 block discarded – undo
128 128
 
129 129
     if ($status == SAVED_UPDATED) {
130 130
       drupal_set_message(t('The crop type %name has been updated.', $t_args));
131
-    }
132
-    elseif ($status == SAVED_NEW) {
131
+    } elseif ($status == SAVED_NEW) {
133 132
       drupal_set_message(t('The crop type %name has been added.', $t_args));
134 133
       $context = array_merge($t_args, array('link' => $this->l(t('View'), new Url('crop.overview_types'))));
135 134
       $this->logger('crop')->notice('Added crop type %name.', $context);
Please login to merge, or discard this patch.
src/CropTypeListBuilder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
     $other_image_styles = array_splice($image_styles, 2);
140 140
     if ($other_image_styles) {
141 141
       $usage_message = t('@first, @second and @count more', ['@first' => $usage[0], '@second' => $usage[1], '@count' => count($other_image_styles)]);
142
-    }
143
-    else {
142
+    } else {
144 143
       $usage_message = implode(', ', $usage);
145 144
     }
146 145
     $row['usage']['data']['#markup'] = $usage_message;
Please login to merge, or discard this patch.