Skip to content

Commit c43fd6d

Browse files
committed
Fix PHP Code Linting
1 parent 14745ce commit c43fd6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/Checker/Checks/Plugin_Repo/Plugin_Header_Fields_Check.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,13 @@ private function is_valid_url( $url ) {
488488
if ( filter_var( $url, FILTER_VALIDATE_URL ) !== $url || ! str_starts_with( $url, 'http' ) ) {
489489
return false;
490490
}
491-
491+
492492
// Detect duplicated protocol (e.g., "https://http://example.com/").
493493
$parsed_url = wp_parse_url( $url );
494494
if ( isset( $parsed_url['scheme'] ) && str_contains( substr( $url, strlen( $parsed_url['scheme'] ) + 3 ), '://' ) ) {
495495
return false;
496496
}
497-
497+
498498
return true;
499499
}
500500

0 commit comments

Comments
 (0)