New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typo and docs standards #162
Conversation
@schlessera can you check this please |
src/DB_Command.php
Outdated
@@ -902,7 +902,7 @@ public function size( $args, $assoc_args ) { | |||
if ( ! defined( 'TB_IN_BYTES' ) ) { | |||
define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES ); | |||
} | |||
// phpcs:enable | |||
// phpcs:enable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPCodeSniffer directives shouldn't end in a comma. Please revert this change.
src/DB_Command.php
Outdated
@@ -505,7 +505,7 @@ public function export( $args, $assoc_args ) { | |||
} else { | |||
// phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand -- WordPress is not loaded. | |||
$hash = substr( md5( mt_rand() ), 0, 7 ); | |||
$result_file = sprintf( '%s-%s-%s.sql', DB_NAME, date( 'Y-m-d' ), $hash ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |||
$result_file = sprintf( '%s-%s-%s.sql', DB_NAME, date( 'Y-m-d' ), $hash ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPCodeSniffer directives shouldn't end in a comma. Please revert this change.
Update
Update
fix typo and docs standards
fix typo and docs standards