Skip to content

Commit 99ba7d1

Browse files
committed
fix phpcs
1 parent 6422a00 commit 99ba7d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

includes/Handler/class-mf2.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,12 @@ public function compare_urls( $needle, $haystack, $schemeless = true ) {
590590
}
591591

592592
// Flatten the haystack to ensure it only contains strings
593-
$haystack = array_filter($haystack, function($element) {
594-
return is_string($element) && !is_array($element);
595-
});
593+
$haystack = array_filter(
594+
$haystack,
595+
function ( $element ) {
596+
return is_string( $element ) && ! is_array( $element );
597+
}
598+
);
596599

597600
// Compare both arrays.
598601
return array_intersect( $needle, $haystack );

0 commit comments

Comments
 (0)