From 8b5d99c3610daffabe8c0d4252134da7228d88b1 Mon Sep 17 00:00:00 2001 From: akkspros Date: Sat, 18 Jan 2020 07:42:06 +0500 Subject: [PATCH 1/3] fix typo and docs standards --- README.md | 2 +- src/DB_Command.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 437e0aa8d..d5209b2f0 100644 --- a/README.md +++ b/README.md @@ -903,7 +903,7 @@ Once you've decided to commit the time to seeing your pull request through, [ple ## Support -Github issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support +GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support *This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.* diff --git a/src/DB_Command.php b/src/DB_Command.php index d02c23fc3..a5769139e 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -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. } $stdout = ( '-' === $result_file ); @@ -852,7 +852,7 @@ public function size( $args, $assoc_args ) { if ( $tables || $all_tables || $all_tables_with_prefix ) { - // Add all of the table sizes + // Add all of the table sizes. foreach ( Utils\wp_get_table_names( $args, $assoc_args ) as $table_name ) { // Get the table size. @@ -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. if ( $human_readable ) { $size_key = floor( log( $row['Size'] ) / log( 1000 ) ); From c1a060547c19fc09cf55a6a7b2d9fef77ab55a2c Mon Sep 17 00:00:00 2001 From: passoniate <56331609+akkspros@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:29:46 +0500 Subject: [PATCH 2/3] Update DB_Command.php Update --- src/DB_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DB_Command.php b/src/DB_Command.php index a5769139e..fcbb8c608 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -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 } $stdout = ( '-' === $result_file ); From d311c612054a851811a5a94b1b5e7c15c126e796 Mon Sep 17 00:00:00 2001 From: passoniate <56331609+akkspros@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:30:47 +0500 Subject: [PATCH 3/3] Update DB_Command.php Update --- src/DB_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DB_Command.php b/src/DB_Command.php index fcbb8c608..4efeba81f 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -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 if ( $human_readable ) { $size_key = floor( log( $row['Size'] ) / log( 1000 ) );