| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | * |
| 6 | 6 | * @package WP_Session |
| 7 | 7 | * @subpackage Commands |
| 8 | 8 | */ |
| 9 | -class WP_Session_Command extends \WP_CLI_Command { | |
| 9 | +class WP_Session_Command extends \WP_CLI_Command { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- This is a bundled library class. Changing it would break existing functionality. | |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Count the total number of sessions stored in the database. |
| 13 | 13 | * |
| @@ -75,9 +75,9 @@ | ||
| 75 | 75 | * Determine the size of each batch for deletion. |
| 76 | 76 | * |
| 77 | 77 | * @param int |
| 78 | 78 | */ |
| 79 | - $batch = isset( $assoc_args['batch'] ) ? absint( $assoc_args['batch'] ) : apply_filters( 'wp_session_delete_batch_size', 1000 ); | |
| 79 | + $batch = isset( $assoc_args['batch'] ) ? absint( $assoc_args['batch'] ) : apply_filters( 'wp_session_delete_batch_size', 1000 ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- This is a bundled library hook. Changing it would break existing functionality. | |
| 80 | 80 | |
| 81 | 81 | switch ( $all ) { |
| 82 | 82 | case true: |
| 83 | 83 | $count = WP_Session_Utils::delete_all_sessions(); |