Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Oct 23, 2023
1 parent 6b5712e commit 24f6a8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/preferred-languages.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}

.active-locales-controls li + li {
margin-top: .5em;
margin-top: 0.5em;
}

.active-locales-list li:hover {
Expand Down
20 changes: 10 additions & 10 deletions tests/phpunit/tests/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ public function test_override_load_textdomain_already_filtered() {
add_filter( 'preferred_languages_merge_translations', '__return_true' );
update_option( 'preferred_languages', 'de_DE,fr_FR' );

$filter = static function() {
$filter = static function () {
return 'es_ES';
};

Expand Down Expand Up @@ -964,7 +964,7 @@ public function test_load_textdomain_mofile_no_preferred_locales() {
public function test_load_textdomain_mofile_already_filtered() {
update_option( 'preferred_languages', 'de_DE,fr_FR' );

$filter = static function() {
$filter = static function () {
return 'es_ES';
};

Expand Down Expand Up @@ -1022,7 +1022,7 @@ public function test_pre_load_script_translations_no_preferred_locales() {
public function test_pre_load_script_translations_already_filtered() {
update_option( 'preferred_languages', 'de_DE,fr_FR' );

$filter = static function() {
$filter = static function () {
return 'es_ES';
};

Expand Down Expand Up @@ -1106,7 +1106,7 @@ public function test_load_script_translation_file_no_preferred_locales() {
public function test_load_script_translation_file_already_filtered() {
update_option( 'preferred_languages', 'de_DE,fr_FR' );

$filter = static function() {
$filter = static function () {
return 'es_ES';
};

Expand Down Expand Up @@ -1219,7 +1219,7 @@ public function test_display_form_missing_translations() {
wp_set_current_user( self::$administrator );

get_echo(
static function() {
static function () {
preferred_languages_display_form( array( 'selected' => array( 'roh' ) ) );
}
);
Expand All @@ -1239,7 +1239,7 @@ public function test_display_form_missing_translations_multisite() {
grant_super_admin( self::$administrator );

get_echo(
static function() {
static function () {
preferred_languages_display_form( array( 'selected' => array( 'roh' ) ) );
}
);
Expand All @@ -1255,7 +1255,7 @@ static function() {
*/
public function test_display_form_show_option_en_us() {
get_echo(
static function() {
static function () {
preferred_languages_display_form( array( 'show_option_en_us' => true ) );
}
);
Expand All @@ -1271,7 +1271,7 @@ static function() {
*/
public function test_display_form_show_option_site_default() {
get_echo(
static function() {
static function () {
preferred_languages_display_form( array( 'show_option_site_default' => true ) );
}
);
Expand All @@ -1288,7 +1288,7 @@ static function() {
*/
public function test_display_form_selected_mixed() {
get_echo(
static function() {
static function () {
preferred_languages_display_form( array( 'selected' => array( 'de_DE', 'en_US', 'fr_FR', 'es_ES', 'foo' ) ) );
}
);
Expand Down Expand Up @@ -1394,7 +1394,7 @@ public function test_filter_gettext_plugin_no_preferred_languages() {
public function test_filter_gettext_plugin_already_filtered() {
update_option( 'preferred_languages', 'de_DE,fr_FR' );

$filter = static function() {
$filter = static function () {
return 'es_ES';
};

Expand Down

0 comments on commit 24f6a8f

Please sign in to comment.