Passed
Push — master ( a7c813...0cded3 )
by Andreas
37:11 queued 18:46
created
lib/midgard/admin/asgard/schemadb.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
     private function _add_string_field(string $key, string $type)
159 159
     {
160
-        if (   $key == 'component'
160
+        if ($key == 'component'
161 161
             && $type == midcom_db_topic::class) {
162 162
             $this->_add_component_dropdown($key);
163 163
             return;
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
                 $height = 30;
236 236
 
237 237
                 // Check the user preference and configuration
238
-                if (   midgard_admin_asgard_plugin::get_preference('tinymce_enabled')
239
-                    || (   midgard_admin_asgard_plugin::get_preference('tinymce_enabled') !== '0'
238
+                if (midgard_admin_asgard_plugin::get_preference('tinymce_enabled')
239
+                    || (midgard_admin_asgard_plugin::get_preference('tinymce_enabled') !== '0'
240 240
                         && $this->_config->get('tinymce_enabled'))) {
241 241
                     $widget = 'tinymce';
242 242
                 }
@@ -249,8 +249,8 @@  discard block
 block discarded – undo
249 249
                 $height = 30;
250 250
 
251 251
                 // Check the user preference and configuration
252
-                if (   midgard_admin_asgard_plugin::get_preference('codemirror_enabled')
253
-                    || (   midgard_admin_asgard_plugin::get_preference('codemirror_enabled') !== '0'
252
+                if (midgard_admin_asgard_plugin::get_preference('codemirror_enabled')
253
+                    || (midgard_admin_asgard_plugin::get_preference('codemirror_enabled') !== '0'
254 254
                         && $this->_config->get('codemirror_enabled'))) {
255 255
                     $widget = 'codemirror';
256 256
                 }
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
         if ($score1 > $score2) {
488 488
             return 1;
489 489
         }
490
-        if (   $score1 < 3
490
+        if ($score1 < 3
491 491
             || $score1 > 6) {
492 492
             return strnatcmp($first, $second);
493 493
         }
Please login to merge, or discard this patch.