Skip to content

Commit

Permalink
Add file checks translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Sep 22, 2023
1 parent 730d162 commit 16d9bb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions checks/file-checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function check_compressed_files() {
return new Error(
'compressed_files',
sprintf(
'Compressed files are not permitted. Found: %s',
__( 'Compressed files are not permitted. Found: %s', 'plugin-check' ),
implode( ', ', array_map( function( $file ) {
return '<code>' . esc_html( basename( $file ) ) . '</code>';
}, $files ) )
Expand All @@ -28,7 +28,7 @@ function check_phar() {
return new Error(
'phar_detected',
sprintf(
'Phar files are not permitted.. Detected: %s',
__( 'Phar files are not permitted.. Detected: %s', 'plugin-check' ),
basename( array_shift( $matches ) )
)
);
Expand Down Expand Up @@ -129,7 +129,7 @@ function check_warn_hidden_files() {
return new Warning(
'hidden_files',
sprintf(
'Hidden files and directories are not permitted. Found: %s',
__( 'Hidden files and directories are not permitted. Found: %s', 'plugin-check' ),
implode( ', ', array_map( function( $file ) {
return '<code>' . esc_html( $file ) . '</code>';
}, $dotfiles ) )
Expand Down
4 changes: 2 additions & 2 deletions checks/phpcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PHPCS_Checks extends Check_Base {
//'WordPress.DB.PreparedSQL.InterpolatedNotPrepared' => Warning::class,
];

function check_against_phpcs() {
public function check_against_phpcs() {
if ( ! HAS_VENDOR ) {
return new Notice(
'phpcs_not_tested',
Expand All @@ -27,7 +27,7 @@ function check_against_phpcs() {
);
}

function check_against_phpcs_review() {
public function check_against_phpcs_review() {
if ( ! HAS_VENDOR ) {
return new Notice(
'phpcs_not_tested',
Expand Down

0 comments on commit 16d9bb1

Please sign in to comment.