Skip to content

Commit d0fda91

Browse files
committed
Fixed PHP CS errors.
1 parent 0a6ece6 commit d0fda91

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/hwp-previews/hwp-previews.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ static function (): void {
113113
function hwp_previews_load_textdomain(): void {
114114
load_plugin_textdomain( 'hwp-previews', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
115115
}
116-
add_action( 'init', 'hwp_previews_load_textdomain', 1, 0);
116+
117+
add_action( 'init', 'hwp_previews_load_textdomain', 1, 0 );
117118

118119
/** @psalm-suppress HookNotFound */
119120
add_action( 'plugins_loaded', 'hwp_previews_init', 15, 0 );

plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public static function get_instance(): self {
5050
public static function add_initial_parameters( self $instance ): self {
5151
$instance
5252
->register(
53-
new Preview_Parameter( 'ID', static fn( WP_Post $post ) => (string) $post->ID, 'Post ID.' )
53+
new Preview_Parameter( 'ID', static fn( WP_Post $post ) => (string) $post->ID, 'Post ID.' )
5454
)->register(
55-
new Preview_Parameter( 'author_ID', static fn( WP_Post $post ) => $post->post_author, 'ID of post author.')
55+
new Preview_Parameter( 'author_ID', static fn( WP_Post $post ) => $post->post_author, 'ID of post author.' )
5656
)->register(
5757
new Preview_Parameter( 'status', static fn( WP_Post $post ) => $post->post_status, 'The post status.' )
5858
)->register(

0 commit comments

Comments
 (0)