Skip to content

Commit 34534c4

Browse files
committed
Lint
1 parent 60e1f79 commit 34534c4

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

tests/bootstrap.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,18 @@ function wp_strip_all_tags( string $value, bool $remove_breaks = false ): string
301301
* @param array<int, string>|null $protocols Allowed protocols.
302302
* @return string Sanitized URL.
303303
*/
304-
function esc_url_raw( string $url, ?array $protocols = null ): string {
305-
$url = trim( $url );
306-
$scheme = parse_url( $url, PHP_URL_SCHEME );
307-
$allowed_protocols = $protocols ?? array();
304+
function esc_url_raw( string $url, ?array $protocols = null ): string {
305+
$url = trim( $url );
306+
$scheme = parse_url( $url, PHP_URL_SCHEME );
307+
$allowed_protocols = $protocols ?? array();
308308

309-
if ( false === $scheme ) {
310-
return '';
311-
}
309+
if ( false === $scheme ) {
310+
return '';
311+
}
312312

313-
if ( ! empty( $allowed_protocols ) && is_string( $scheme ) && ! in_array( $scheme, $allowed_protocols, true ) ) {
314-
return '';
315-
}
313+
if ( ! empty( $allowed_protocols ) && is_string( $scheme ) && ! in_array( $scheme, $allowed_protocols, true ) ) {
314+
return '';
315+
}
316316

317317
return filter_var( $url, FILTER_VALIDATE_URL ) ? $url : '';
318318
}

0 commit comments

Comments
 (0)