Skip to content

Commit 6484e6c

Browse files
committed
lint fixes
1 parent b68b82e commit 6484e6c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

inc/Config/DataSource/DataSourceQuery.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ public function get_display_name(): string {
103103
* @return string The service name.
104104
*/
105105
abstract public function get_service_name(): string;
106-
}
106+
}

inc/WpdbStorage/WpOptionsConfigStore.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ protected static function validate_and_instantiate( array $config ): mixed {
5050

5151
$config_class_map = static::get_config_class_map();
5252

53-
$config_class = $config_class_map[$service] ?? null;
53+
$config_class = $config_class_map[ $service ] ?? null;
5454

5555
if ( null === $config_class ) {
56+
// translators: %s is the name of the service that is not supported
5657
return new WP_Error(
5758
'unsupported_service',
5859
sprintf(
@@ -70,6 +71,7 @@ private static function get_not_found_error_code(): string {
7071
}
7172

7273
private static function get_not_found_error_message(): string {
74+
// translators: %s is the error message prefix for the config type
7375
return sprintf( __( '%s not found', 'remote-data-blocks' ), static::get_error_message_prefix() );
7476
}
7577

@@ -78,6 +80,7 @@ private static function get_save_failed_error_code(): string {
7880
}
7981

8082
private static function get_save_failed_error_message(): string {
83+
// translators: %s is the error message prefix for the config type
8184
return sprintf( __( 'Failed to save %s', 'remote-data-blocks' ), static::get_error_message_prefix() );
8285
}
8386

@@ -86,6 +89,7 @@ private static function get_delete_failed_error_code(): string {
8689
}
8790

8891
private static function get_delete_failed_error_message(): string {
92+
// translators: %s is the error message prefix for the config type
8993
return sprintf( __( 'Failed to delete %s', 'remote-data-blocks' ), static::get_error_message_prefix() );
9094
}
9195

0 commit comments

Comments
 (0)