Skip to content

Commit

Permalink
fix: wpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Oct 18, 2021
1 parent 0777676 commit 81cb15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Export_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private static function get_filename_template( $filename_format ) {
/**
* Get the potential filename.
*/
$potential_file_name = str_replace( [ '{site}', '{date}', '{n}' ], [ $sitename, date( 'Y-m-d' ), '%03d' ], $filename_format );
$potential_file_name = str_replace( [ '{site}', '{date}', '{n}' ], [ $sitename, date( 'Y-m-d' ), '%03d' ], $filename_format ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date

/**
* Get the length of the potential file name.
Expand All @@ -226,7 +226,7 @@ private static function get_filename_template( $filename_format ) {
* If the potential filename size exceeds 99 bytes, then remove the extra bytes.
*/
if ( $potential_file_name_size > 99 ) {
$extra_bytes = $potential_file_name_size - 99;
$extra_bytes = $potential_file_name_size - 99;
$sitename_size = strlen( $sitename );

/**
Expand Down

0 comments on commit 81cb15c

Please sign in to comment.