Skip to content

Commit 837fb1d

Browse files
fix: use tabs for indention
1 parent a864d94 commit 837fb1d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: src/Helpers/DebugMode.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ public static function log( string $message ) {
4242
return;
4343
}
4444

45-
$date = date( 'Y-m-d' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
46-
$time = date( 'H-i-s' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
47-
$log_dir = defined( 'ANTISPAM_BEE_DEBUG_MODE_LOG_DIR' ) ? \ANTISPAM_BEE_DEBUG_MODE_LOG_DIR : \WP_CONTENT_DIR;
48-
49-
if ( ! is_dir( $log_dir ) ) {
50-
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Intentional debug use.
51-
error_log( "The directory set for Antispam Bee debug logging does not exist: {$log_dir}" );
52-
}
53-
54-
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Intentional debug use.
55-
error_log( "[{$date} {$time}] {$message}\n", 3, "{$log_dir}/asb-debug.{$date}.log" );
56-
}
45+
$date = date( 'Y-m-d' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
46+
$time = date( 'H-i-s' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
47+
$log_dir = defined( 'ANTISPAM_BEE_DEBUG_MODE_LOG_DIR' ) ? \ANTISPAM_BEE_DEBUG_MODE_LOG_DIR : \WP_CONTENT_DIR;
48+
49+
if ( ! is_dir( $log_dir ) ) {
50+
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Intentional debug use.
51+
error_log( "The directory set for Antispam Bee debug logging does not exist: {$log_dir}" );
52+
}
53+
54+
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Intentional debug use.
55+
error_log( "[{$date} {$time}] {$message}\n", 3, "{$log_dir}/asb-debug.{$date}.log" );
56+
}
5757
}

0 commit comments

Comments
 (0)