Skip to content

Commit 199bde2

Browse files
committed
phpcs
1 parent af80158 commit 199bde2

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/Data/TermObjectMutation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public static function prepare_object( array $input, WP_Taxonomy $taxonomy, stri
7777
}
7878

7979
$insert_args['parent'] = 0 !== $parent_id ? $parent_term->term_id : 0;
80-
8180
}
8281

8382
/**

src/Mutation/TermObjectCreate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function get_input_fields( WP_Taxonomy $taxonomy ) {
6969
* Add a parentId field to hierarchical taxonomies to allow parents to be set
7070
*/
7171
if ( true === $taxonomy->hierarchical ) {
72-
$fields['parentId'] = [
72+
$fields['parentId'] = [
7373
'type' => 'ID',
7474
// translators: The placeholder is the name of the taxonomy for the object being mutated
7575
'description' => sprintf( __( 'The ID of the %1$s that should be set as the parent. This field cannot be used in conjunction with parentDatabaseId', 'wp-graphql' ), $taxonomy->name ),

src/Utils/Utils.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ public static function get_database_id_from_id( $id ) {
345345
$id_parts = Relay::fromGlobalId( $id );
346346

347347
return isset( $id_parts['id'] ) && is_numeric( $id_parts['id'] ) ? absint( $id_parts['id'] ) : false;
348-
349348
}
350349

351350
/**

0 commit comments

Comments
 (0)