-
Notifications
You must be signed in to change notification settings - Fork 3
PHPCS fixes #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
PHPCS fixes #3
Conversation
inc/class-markdown-hb-import.php
Outdated
if ( class_exists( 'WP_CLI' ) ) { | ||
\WP_CLI::success( "Successfully created {$created} command pages." ); | ||
\WP_CLI::success( sprintf( 'Successfully created %s command pages.', $created ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\WP_CLI::success( sprintf( 'Successfully created %s command pages.', $created ) ); | |
\WP_CLI::success( "Successfully created {$created} command pages." ); |
Why is current implementation changed? Current code is clearer.
'post_type' => $this->post_type, | ||
'post_parent' => $parent_page_id, | ||
'posts_per_page' => 200, | ||
'posts_per_page' => 200, // phpcs:ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it ignored? Add comment with specific rule.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function ee_wpghs_whitelisted_post_types( $supported_post_types ) { | ||
|
||
return [ | ||
'handbook', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use $this->post_type
here and other instances where possible ?
No description provided.