Skip to content

Commit 460c556

Browse files
committed
WPCS
1 parent d8aafbc commit 460c556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redux-core/inc/classes/class-redux-filesystem.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ public function put_contents( string $abs_path, string $contents, string $perms
540540

541541
if ( ! $return && $this->use_filesystem ) {
542542
$abs_path = $this->get_sanitized_path( $abs_path );
543+
543544
// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_is_writable, WordPress.WP.AlternativeFunctions.file_system_operations_is_writable
544545
$return = is_writable( $abs_path ) && $this->wp_filesystem->put_contents( $abs_path, $contents, $perms );
545546
}
@@ -841,6 +842,7 @@ public function mkdir( string $abs_path, int $perms = null ): bool {
841842

842843
foreach ( $dirs as $dir ) {
843844
$current_dir .= '/' . $dir;
845+
844846
// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_is_writable, WordPress.WP.AlternativeFunctions.file_system_operations_is_writable
845847
if ( ! $this->is_dir( $current_dir ) && is_writable( $current_dir ) ) {
846848
$this->wp_filesystem->mkdir( $current_dir, $perms );
@@ -937,9 +939,7 @@ public function scandir( string $abs_path, bool $include_hidden = true, bool $re
937939

938940
$ret = array();
939941

940-
$entry = $dir->read();
941-
942-
while ( false !== ( $entry ) ) {
942+
while ( false !== ( $entry = $dir->read() ) ) {
943943
$struc = array();
944944
$struc['name'] = $entry;
945945

0 commit comments

Comments
 (0)