Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Arntz <[email protected]>
  • Loading branch information
mukeshpanchal27 and felixarntz authored Oct 23, 2023
1 parent 95e863e commit 5972cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Checker/Checks/File_Type_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function ( $directory ) use ( $directories ) {
$is_error,
__( 'Version control checkouts should not be present.', 'plugin-check' ),
'vcs_present',
str_replace( $result->plugin()->path(), '', $dir )
$dir
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/Traits/Amend_Check_Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ trait Amend_Check_Result {
*/
protected function add_result_message_for_file( Check_Result $result, $error, $message, $code, $file, $line = 0, $column = 0 ) {
$result->add_message(
$error ? true : false,
(bool) $error,
$message,
array(
'code' => $code,
Expand Down

0 comments on commit 5972cd7

Please sign in to comment.