Skip to content

Commit 6789828

Browse files
committed
- phpcs
1 parent 785b98a commit 6789828

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/FieldType/Relationship.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,20 @@ public static function get_graphql_type( FieldConfig $field_config, AcfGraphQLFi
6363
$ids = $value;
6464
}
6565

66-
$ids = array_filter( array_map(
67-
static function ( $id ) {
68-
if ( is_object( $id ) && isset( $id->ID ) ) {
69-
$id = $id->ID;
70-
}
71-
// filter out values that are not IDs
72-
// this means that external urls or urls to things like
73-
// archive links will not resolve.
74-
return absint( $id ) ?: null;
75-
},
76-
$ids
77-
) );
66+
$ids = array_filter(
67+
array_map(
68+
static function ( $id ) {
69+
if ( is_object( $id ) && isset( $id->ID ) ) {
70+
$id = $id->ID;
71+
}
72+
// filter out values that are not IDs
73+
// this means that external urls or urls to things like
74+
// archive links will not resolve.
75+
return absint( $id ) ?: null;
76+
},
77+
$ids
78+
)
79+
);
7880

7981
$resolver = new PostObjectConnectionResolver( $root, $args, $context, $info, 'any' );
8082

0 commit comments

Comments
 (0)