getExtension() ) { $this->php_files_array[] = $file; } } if ( ! empty( $this->php_files_array ) ) { $this->set_status( 'warning' ); $this->set_message( 'PHP files detected in the Uploads folder.' ); } else { $this->set_status( 'success' ); $this->set_message( 'No PHP files found in the Uploads folder.' ); } } }