Skip to content

Commit ca5515e

Browse files
committed
CS fix
1 parent 7486102 commit ca5515e

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

classes/admin/widgets/class-whats-new.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ public function get_blog_feed() {
8787
* @return string
8888
*/
8989
public function get_cache_key() {
90-
return 'blog_feed_' . md5( \progress_planner()->get_ui__branding()->get_blog_feed_url() );
90+
return 'blog_feed_' . \md5( \progress_planner()->get_ui__branding()->get_blog_feed_url() );
9191
}
9292
}

classes/class-suggested-tasks-db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function add( $data ) {
4747
if ( $current && ( $current < \time() - 30 ) ) {
4848
\update_option( $lock_key, $lock_value );
4949
} else {
50-
error_log( 'Lock for: ' . $data['task_id'] ); // TODO: remove this after testing.
50+
\error_log( 'Lock for: ' . $data['task_id'] ); // TODO: remove this after testing.
5151
return 0; // Other process is using it.
5252
}
5353
}

classes/suggested-tasks/providers/class-set-date-format.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ public function print_popover_instructions() {
114114
$detected_date_format = $this->get_date_format_type();
115115

116116
// Get the site default language name.
117-
$available_languages = wp_get_available_translations();
118-
$site_locale = get_locale();
117+
$available_languages = \wp_get_available_translations();
118+
$site_locale = \get_locale();
119119

120120
if ( isset( $available_languages[ $site_locale ] ) ) {
121121
$lang_name = $available_languages[ $site_locale ]['english_name'];
122-
} elseif ( function_exists( 'locale_get_display_name' ) ) {
123-
$lang_name = locale_get_display_name( $site_locale, 'en' );
122+
} elseif ( \function_exists( 'locale_get_display_name' ) ) {
123+
$lang_name = \locale_get_display_name( $site_locale, 'en' );
124124
} else {
125125
$lang_name = $site_locale;
126126
}
@@ -160,11 +160,11 @@ public function print_popover_form_contents() {
160160
$localized_default_date_format = \__( 'F j, Y' ); // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
161161

162162
// Try to get the localized default date format.
163-
$site_locale = get_locale();
164-
$user_locale = get_user_locale();
165-
if ( $user_locale !== $site_locale && switch_to_locale( $site_locale ) ) {
163+
$site_locale = \get_locale();
164+
$user_locale = \get_user_locale();
165+
if ( $user_locale !== $site_locale && \switch_to_locale( $site_locale ) ) {
166166
$localized_default_date_format = \__( 'F j, Y' ); // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
167-
restore_previous_locale();
167+
\restore_previous_locale();
168168
}
169169

170170
/**

classes/ui/class-branding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function filter_widgets( $widgets ) {
226226
return $widgets;
227227
}
228228

229-
return array_filter(
229+
return \array_filter(
230230
$widgets,
231231
function ( $widget ) use ( $show_papers ) {
232232
return \in_array( $widget->get_id(), $show_papers, true );

views/dashboard-widgets/score.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<h3>
5151
<?php
52-
printf(
52+
\printf(
5353
/* translators: %s: Ravi's name. */
5454
\esc_html__( '%s\'s Recommendations', 'progress-planner' ),
5555
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )

views/page-widgets/suggested-tasks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<?php
1616
echo \progress_planner()->get_ui__branding()->get_widget_title( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1717
'suggested-tasks',
18-
sprintf(
18+
\sprintf(
1919
/* translators: %s: Ravi's name. */
2020
\esc_html__( '%s\'s Recommendations', 'progress-planner' ),
2121
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )
@@ -25,7 +25,7 @@
2525
</h2>
2626
<p class="prpl-suggested-tasks-widget-description">
2727
<?php
28-
printf(
28+
\printf(
2929
/* translators: %s: Ravi's name. */
3030
\esc_html__( 'Complete a task from %s’s Recommendations to improve your site and earn points toward this month’s badge!', 'progress-planner' ),
3131
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )

0 commit comments

Comments
 (0)