Skip to content

Commit 41c4830

Browse files
committed
Lint fix
1 parent 5eeb1af commit 41c4830

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Core_Command.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,9 +1974,9 @@ private function remove_old_files_from_list( $files ) {
19741974
// Symlinks: validate and remove without following the link.
19751975
if ( is_link( $file_path ) ) {
19761976
$normalized_path = realpath( dirname( $file_path ) );
1977-
if ( false === $normalized_path
1978-
|| 0 !== strpos( Utils\trailingslashit( $normalized_path ), $abspath_realpath_trailing )
1979-
) {
1977+
if ( false === $normalized_path
1978+
|| 0 !== strpos( Utils\trailingslashit( $normalized_path ), $abspath_realpath_trailing )
1979+
) {
19801980
WP_CLI::debug( "Skipping symbolic link outside of ABSPATH: {$file}", 'core' );
19811981
continue;
19821982
}
@@ -1991,7 +1991,7 @@ private function remove_old_files_from_list( $files ) {
19911991

19921992
// Regular files/directories: validate real path is within ABSPATH.
19931993
$file_realpath = realpath( $file_path );
1994-
if ( false === $file_realpath || 0 !== strpos( Utils\trailingslashit( $file_realpath ), $abspath_realpath_trailing ) ) {
1994+
if ( false === $file_realpath || 0 !== strpos( Utils\trailingslashit( $file_realpath ), $abspath_realpath_trailing ) ) {
19951995
WP_CLI::debug( "Skipping file outside of ABSPATH: {$file}", 'core' );
19961996
continue;
19971997
}
@@ -2027,7 +2027,7 @@ private function remove_directory( $dir, $abspath_realpath_trailing ) {
20272027
WP_CLI::debug( "Failed to resolve realpath for directory: {$dir}", 'core' );
20282028
return false;
20292029
}
2030-
if ( 0 !== strpos( Utils\trailingslashit( $dir_realpath ), $abspath_realpath_trailing ) ) {
2030+
if ( 0 !== strpos( Utils\trailingslashit( $dir_realpath ), $abspath_realpath_trailing ) ) {
20312031
WP_CLI::debug( "Attempted to remove directory outside of ABSPATH: {$dir_realpath}", 'core' );
20322032
return false;
20332033
}

0 commit comments

Comments
 (0)