Skip to content

Commit 2fbda76

Browse files
committed
Ran composer fix-cs
1 parent 54319b2 commit 2fbda76

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function print_popover_instructions() {
121121
<p><?php \esc_html_e( 'Choosing the right date format helps your visitors instantly understand when something was published without confusion or guessing. It also makes your site feel more familiar and trustworthy, especially if your audience is local.', 'progress-planner' ); ?></p>
122122
<p>
123123
<?php
124-
printf(
124+
\printf(
125125
/* translators: %s: The date format. */
126126
\esc_html__( 'The date format currently set matches the default format for your site language (%s). Therefore, we expect it\'s set correctly. But can you have a quick look, just to be sure?', 'progress-planner' ),
127127
\esc_html( \get_option( 'date_format' ) )
@@ -210,11 +210,11 @@ public function add_task_actions( $data = [], $actions = [] ) {
210210
protected function get_date_format_type() {
211211
$date_format = \get_option( 'date_format' );
212212

213-
if ( $date_format === 'F j, Y' && 'F j, Y' !== __( 'F j, Y' ) ) { // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
213+
if ( $date_format === 'F j, Y' && 'F j, Y' !== \__( 'F j, Y' ) ) { // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
214214
return 'wp_default';
215215
}
216216

217-
if ( $date_format === __( 'F j, Y' ) ) { // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
217+
if ( $date_format === \__( 'F j, Y' ) ) { // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
218218
return 'localized_default';
219219
}
220220

views/tasks/set-date-format-form-contents.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @param string[] $default_date_formats Array of default date formats.
1717
*/
18-
$prpl_date_formats = array_unique( \apply_filters( 'date_formats', [ __( 'F j, Y' ), 'F j, Y', 'Y-m-d', 'm/d/Y', 'd/m/Y', 'd.m.Y' ] ) ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound, WordPress.WP.I18n.MissingArgDomain -- WP core filter & we want to add the default date format
18+
$prpl_date_formats = \array_unique( \apply_filters( 'date_formats', [ \__( 'F j, Y' ), 'F j, Y', 'Y-m-d', 'm/d/Y', 'd/m/Y', 'd.m.Y' ] ) ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound, WordPress.WP.I18n.MissingArgDomain -- WP core filter & we want to add the default date format
1919

2020
$prpl_custom = true;
2121
?>
@@ -45,10 +45,10 @@
4545
<?php /* Custom date format. */ ?>
4646
<div class="prpl-radio-wrapper">
4747
<label class="prpl-custom-radio">
48-
<input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m" <?php checked( $prpl_custom ); ?>/>
48+
<input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m" <?php \checked( $prpl_custom ); ?>/>
4949
<span class="prpl-custom-control"></span> <span class="date-time-text date-time-custom-text">
5050
<?php
51-
printf(
51+
\printf(
5252
/* translators: %s: Screen reader text "enter a custom date format in the following field". */
5353
\esc_html__( 'Custom: %s', 'progress-planner' ),
5454
/* translators: Hidden accessibility text. */
@@ -69,7 +69,7 @@
6969
<?php /* Preview. */ ?>
7070
<p>
7171
<?php
72-
printf(
72+
\printf(
7373
/* translators: %s: Preview text. */
7474
\wp_kses_post( \__( '<strong>Preview:</strong> %s', 'progress-planner' ) ),
7575
'<span class="example">' . \esc_html( \date_i18n( \get_option( 'date_format' ) ) ) . '</span><span class="spinner"></span>'

0 commit comments

Comments
 (0)