Passed
Push — master ( a8b33d...121632 )
by Dominik
04:21 queued 12s
created
lib/Utils/Options.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             static::$initialized = true;
34 34
         }
35 35
 
36
-        add_action('current_screen', function ($currentScreen) {
36
+        add_action('current_screen', function($currentScreen) {
37 37
             $currentScreenId = strtolower($currentScreen->id);
38 38
             foreach (static::OPTION_TYPES as $optionType => $option) {
39 39
                 $isTranslatable = $option['translatable'];
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                         101
59 59
                     );
60 60
                     // hide language selector in admin bar
61
-                    add_action('wp_before_admin_bar_render', function () {
61
+                    add_action('wp_before_admin_bar_render', function() {
62 62
                         $adminBar = $GLOBALS['wp_admin_bar'];
63 63
                         $adminBar->remove_menu('WPML_ALS');
64 64
                     });
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             $optionNames = ((static::$registeredOptions[$optionType] ?? [])[$scope] ?? []);
179 179
             return array_combine(
180 180
                 $optionNames,
181
-                array_map(function ($optionName) use ($prefix, $isTranslatable) {
181
+                array_map(function($optionName) use ($prefix, $isTranslatable) {
182 182
                     $fieldKey = $prefix . $optionName;
183 183
                     return static::getOptionField($fieldKey, $isTranslatable);
184 184
                 }, $optionNames)
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
     protected static function prefixFields($fields, $prefix)
261 261
     {
262
-        return array_map(function ($field) use ($prefix) {
262
+        return array_map(function($field) use ($prefix) {
263 263
             $field['name'] = $prefix . '_' . $field['name'];
264 264
             return $field;
265 265
         }, $fields);
Please login to merge, or discard this patch.