style: auto-fix PHPCS violations via phpcbf

This commit is contained in:
peptiderepo
2026-06-23 06:59:37 +00:00
parent baae383c76
commit b05c873b64
2 changed files with 7 additions and 4 deletions

View File

@@ -59,7 +59,10 @@ class PRAutoBlogger_Gen_History_Query {
public function get_page( int $page = 1, int $per_page = self::PAGE_SIZE ): array {
global $wpdb;
if ( null === $wpdb ) {
return array( 'rows' => array(), 'total' => 0 );
return array(
'rows' => array(),
'total' => 0,
);
}
$per_page = min( max( 1, $per_page ), self::PAGE_SIZE_MAX );

View File

@@ -143,10 +143,10 @@ if ( ! defined( 'ABSPATH' ) ) {
</tbody>
</table>
<?php if ( $pagination['total'] > 1 ) : ?>
<?php if ( $pagination['total'] > 1 ) : ?>
<div class="prab-gen-history__pagination">
<?php for ( $p = 1; $p <= $pagination['total']; $p++ ) : ?>
<?php if ( $p === $pagination['current'] ) : ?>
<?php for ( $p = 1; $p <= $pagination['total']; $p++ ) : ?>
<?php if ( $p === $pagination['current'] ) : ?>
<span class="prab-gen-history__page-current"><?php echo (int) $p; ?></span>
<?php else : ?>
<a href="<?php echo esc_url( add_query_arg( 'paged', $p, $pagination['base'] ) ); ?>">