Skip to content

Commit dd7d1aa

Browse files
committed
use null-coalescing operator where applicable
1 parent 24cd075 commit dd7d1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/class-statifyblacklist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ private static function get_referer(): string {
326326
private static function get_referer_domain(): string {
327327
$referer = wp_parse_url( self::get_referer() );
328328

329-
return strtolower( ( isset( $referer['host'] ) ? $referer['host'] : '' ) );
329+
return strtolower( $referer['host'] ?? '' );
330330
}
331331

332332
/**

0 commit comments

Comments
 (0)