| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | * |
| 41 | 41 | * @subcommand list |
| 42 | 42 | */ |
| 43 | 43 | public function _list() { |
| 44 | - $tables = $this->resetter->get_wp_tables(); | |
| 44 | + $tables = $this->get_wp_tables(); | |
| 45 | 45 | |
| 46 | 46 | foreach( $tables as $key => $value ) { |
| 47 | 47 | WP_CLI::line( $key ); |
| 48 | 48 | } |
| @@ -52,10 +52,11 @@ | ||
| 52 | 52 | $this->disable_error_reporting(); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | private function disable_error_reporting() { |
| 56 | - $this->reporting = error_reporting(); | |
| 57 | - error_reporting( 0 ); | |
| 56 | + // disable error reporting during reset | |
| 57 | + $this->reporting = error_reporting(); //phpcs:ignore | |
| 58 | + error_reporting( 0 ); //phpcs:ignore | |
| 58 | 59 | } |
| 59 | 60 | |
| 60 | 61 | private function sanitize_input( $string = '' ) { |
| 61 | 62 | if ( ! empty ( $string ) ) { |
| @@ -96,9 +97,9 @@ | ||
| 96 | 97 | } |
| 97 | 98 | } |
| 98 | 99 | |
| 99 | 100 | private function handle_after_reset() { |
| 100 | - error_reporting( $this->reporting ); | |
| 101 | + error_reporting( $this->reporting ); //phpcs:ignore | |
| 101 | 102 | } |
| 102 | 103 | } |
| 103 | 104 | |
| 104 | 105 | WP_CLI::add_command( 'reset', 'DB_Reset_Command' ); |