Completed
Push — master ( 423a86...e57c38 )
by Andreas
08:58
created
lib/midgard/admin/asgard/plugin.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,8 +163,7 @@
 block discarded – undo
163 163
             && midcom_baseclasses_components_configuration::get('midgard.admin.asgard', 'config')->get('edit_mode') == 1)
164 164
         {
165 165
             $data['default_mode'] = 'edit';
166
-        }
167
-        else if (midgard_admin_asgard_plugin::get_preference('edit_mode') == 1)
166
+        } else if (midgard_admin_asgard_plugin::get_preference('edit_mode') == 1)
168 167
         {
169 168
             $data['default_mode'] = 'edit';
170 169
         }
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/handler/object/rcs.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -217,8 +217,7 @@  discard block
 block discarded – undo
217 217
                 $second = $before;
218 218
                 $show_previous = true;
219 219
             }
220
-        }
221
-        else
220
+        } else
222 221
         {
223 222
             if ($before != '')
224 223
             {
@@ -284,15 +283,13 @@  discard block
 block discarded – undo
284 283
             if (count($_REQUEST['compare']) !== 2)
285 284
             {
286 285
                 midcom::get()->uimessages->add($this->_l10n->get('midgard.admin.asgard'), $this->_l10n->get('select exactly two choices'));
287
-            }
288
-            else
286
+            } else
289 287
             {
290 288
                 if (version_compare($_REQUEST['compare'][0], '<', $_REQUEST['compare'][1]))
291 289
                 {
292 290
                     $first = $_REQUEST['compare'][0];
293 291
                     $last = $_REQUEST['compare'][1];
294
-                }
295
-                else
292
+                } else
296 293
                 {
297 294
                     $first = $_REQUEST['compare'][1];
298 295
                     $last = $_REQUEST['compare'][0];
Please login to merge, or discard this patch.