array( 'type' => 'array' ), 'count' => array( 'type' => 'integer' ), 'redacted' => array( 'type' => 'integer' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } protected function run( array $input ) { $rows = Event_Repository::settings(); $redacted = 0; foreach ( $rows as $row ) { if ( ! empty( $row['redacted'] ) ) { ++$redacted; } } return array( 'settings' => $rows, 'count' => count( $rows ), 'redacted' => $redacted, 'message' => sprintf( /* translators: 1: number of settings, 2: number redacted */ __( '%1$d settings, %2$d of them redacted as credentials.', 'acrossai-abilities-manager' ), count( $rows ), $redacted ), ); } }