Skip to content

Commit

Permalink
fix some precision alighments of equals signs and double arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Nov 10, 2023
1 parent af2d050 commit 8b2b3ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions inc/class-antivirus.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public static function get_ajax_response() {
case 'check_theme_file':
if ( ! empty( $_POST['_theme_file'] ) ) {
$theme_file = filter_var( wp_unslash( $_POST['_theme_file'] ), FILTER_UNSAFE_RAW );
$lines = AntiVirus_CheckInternals::check_theme_file( $theme_file );
$lines = AntiVirus_CheckInternals::check_theme_file( $theme_file );
if ( $lines ) {
foreach ( $lines as $num => $line ) {
foreach ( $line as $string ) {
Expand Down Expand Up @@ -607,9 +607,9 @@ public static function show_dashboard_notice() {
),
array(
'a' => array(
'href' => array(),
'href' => array(),
'target' => array(),
'rel' => array(),
'rel' => array(),
),
)
)
Expand Down Expand Up @@ -660,7 +660,7 @@ public static function show_admin_menu() {

// No cronjob?
if ( ! self::_cron_enabled( $options ) ) {
$options['notify_email'] = '';
$options['notify_email'] = '';
}

// No Safe Browsing?
Expand Down
1 change: 1 addition & 0 deletions tests/test-checkinternals.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function test_theme_files(): void {
'themefile2' => '/themes/theme1/themefile2',
)
);

$parent_theme = new WP_Theme_Mock(
'Theme 2',
'theme2',
Expand Down
6 changes: 3 additions & 3 deletions tests/test-checksumverifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function test(): void {
->andReturn( 'de_DE' );

// We capture the remote call to SafeBrowsing API and mock the response.
$response = new stdClass();
$request_url = null;
$response = new stdClass();
$request_url = null;
WP_Mock::userFunction( 'wp_remote_get' )
->with( Mockery::capture( $request_url ) )
->atLeast()
Expand All @@ -59,7 +59,7 @@ public function test(): void {
)
->atLeast()
->once();
$transient = null;
$transient = null;
$transient_expiration = null;
WP_Mock::userFunction( 'set_site_transient' )
->with(
Expand Down

0 comments on commit 8b2b3ca

Please sign in to comment.