Skip to content

Commit

Permalink
chore: remove whitespace before EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Sep 16, 2023
1 parent 01d841b commit b1d85e8
Show file tree
Hide file tree
Showing 41 changed files with 146 additions and 146 deletions.
2 changes: 1 addition & 1 deletion src/Admin/Admin.php
Expand Up @@ -49,7 +49,7 @@ public function init() {
'admin_menu',
static function () {
remove_menu_page( 'wp-graphiql/wp-graphiql.php' );
}
}
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Admin/GraphiQL/GraphiQL.php
Expand Up @@ -69,15 +69,15 @@ public function register_admin_bar_menu( WP_Admin_Bar $admin_bar ) {
background-image:url(\'%s\'); float:left; width:22px !important; height:22px !important;
margin-left: 5px !important; margin-top: 5px !important; margin-right: 5px !important;
"></span>',
$icon_url
$icon_url
);

$admin_bar->add_menu(
[
'id' => 'graphiql-ide',
'title' => $icon . __( 'GraphiQL IDE', 'wp-graphql' ),
'href' => trailingslashit( admin_url() ) . 'admin.php?page=graphiql-ide',
]
]
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Admin/Settings/Settings.php
Expand Up @@ -88,7 +88,7 @@ public function register_settings() {
'graphql_general_settings',
[
'title' => __( 'WPGraphQL General Settings', 'wp-graphql' ),
]
]
);

$custom_endpoint = apply_filters( 'graphql_endpoint', null );
Expand Down Expand Up @@ -237,7 +237,7 @@ public function register_settings() {
'value' => true === \WPGraphQL::debug() ? 'on' : get_graphql_setting( 'public_introspection_enabled', 'off' ),
'disabled' => true === \WPGraphQL::debug(),
],
]
]
);

// Action to hook into to register settings
Expand Down
28 changes: 14 additions & 14 deletions src/Data/Config.php
Expand Up @@ -104,7 +104,7 @@ static function ( $query ) {
[
$query->query_where,
&$query,
]
]
);

/**
Expand All @@ -118,7 +118,7 @@ static function ( $query ) {
[
$query->query_orderby,
&$query,
]
]
);
}

Expand Down Expand Up @@ -174,11 +174,11 @@ public function graphql_wp_query_cursor_pagination_stability( string $orderby, W

/**
* If pre-filter hooked, return $pre_orderby.
*
*
* @param null|string $pre_orderby The pre-filtered ORDER BY clause of the query.
* @param string $orderby The ORDER BY clause of the query.
* @param \WP_Query $query The WP_Query instance (passed by reference).
*
*
* @return null|string
*/
$pre_orderby = apply_filters( 'graphql_pre_wp_query_cursor_pagination_stability', null, $orderby, $query );
Expand Down Expand Up @@ -225,11 +225,11 @@ public function graphql_wp_query_cursor_pagination_support( string $where, WP_Qu

/**
* If pre-filter hooked, return $pre_where.
*
*
* @param null|string $pre_where The pre-filtered WHERE clause of the query.
* @param string $where The WHERE clause of the query.
* @param \WP_Query $query The WP_Query instance (passed by reference).
*
*
* @return null|string
*/
$pre_where = apply_filters( 'graphql_pre_wp_query_cursor_pagination_support', null, $where, $query );
Expand Down Expand Up @@ -276,11 +276,11 @@ public function graphql_wp_user_query_cursor_pagination_stability( $orderby, \WP

/**
* If pre-filter hooked, return $pre_orderby.
*
*
* @param null|string $pre_orderby The pre-filtered ORDER BY clause of the query.
* @param string $orderby The ORDER BY clause of the query.
* @param \WP_User_Query $query The WP_User_Query instance (passed by reference).
*
*
* @return null|string
*/
$pre_orderby = apply_filters( 'graphql_pre_wp_user_query_cursor_pagination_stability', null, $orderby, $query );
Expand Down Expand Up @@ -327,11 +327,11 @@ public function graphql_wp_user_query_cursor_pagination_support( $where, \WP_Use

/**
* If pre-filter hooked, return $pre_where.
*
*
* @param null|string $pre_where The pre-filtered WHERE clause of the query.
* @param string $where The WHERE clause of the query.
* @param \WP_User_Query $query The WP_Query instance (passed by reference).
*
*
* @return null|string
*/
$pre_where = apply_filters( 'graphql_pre_wp_user_query_cursor_pagination_support', null, $where, $query );
Expand Down Expand Up @@ -380,12 +380,12 @@ public function graphql_wp_term_query_cursor_pagination_support( array $pieces,

/**
* If pre-filter hooked, return $pre_pieces.
*
*
* @param null|array $pre_pieces The pre-filtered term query SQL clauses.
* @param array $pieces Terms query SQL clauses.
* @param array $taxonomies An array of taxonomies.
* @param array $args An array of terms query arguments.
*
*
* @return null|array
*/
$pre_pieces = apply_filters( 'graphql_pre_wp_term_query_cursor_pagination_support', null, $pieces, $taxonomies, $args );
Expand Down Expand Up @@ -442,11 +442,11 @@ public function graphql_wp_comments_query_cursor_pagination_support( array $piec

/**
* If pre-filter hooked, return $pre_pieces.
*
*
* @param null|array $pre_pieces The pre-filtered comment query clauses.
* @param array $pieces A compacted array of comment query clauses.
* @param \WP_Comment_Query $query Current instance of WP_Comment_Query, passed by reference.
*
*
* @return null|array
*/
$pre_pieces = apply_filters( 'graphql_pre_wp_comments_query_cursor_pagination_support', null, $pieces, $query );
Expand Down
4 changes: 2 additions & 2 deletions src/Data/Connection/CommentConnectionResolver.php
Expand Up @@ -229,7 +229,7 @@ public function get_args(): array {
static function ( $id ) {
return Utils::get_database_id_from_id( $id );
},
$input_value
$input_value
);
break;
}
Expand All @@ -247,7 +247,7 @@ static function ( $id ) {

return Utils::get_database_id_from_id( $id );
},
$input_value
$input_value
);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Connection/EnqueuedScriptsConnectionResolver.php
Expand Up @@ -35,7 +35,7 @@ static function ( $max, $source, $args, $context, ResolveInfo $info ) {
return $max;
},
10,
5
5
);

parent::__construct( $source, $args, $context, $info );
Expand Down
Expand Up @@ -41,7 +41,7 @@ static function ( $max, $source, $args, $context, ResolveInfo $info ) {
return $max;
},
10,
5
5
);

parent::__construct( $source, $args, $context, $info );
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Connection/TermObjectConnectionResolver.php
Expand Up @@ -285,7 +285,7 @@ public function get_args(): array {
static function ( $id ) {
return Utils::get_database_id_from_id( $id );
},
$input_value
$input_value
);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Data/TermObjectMutation.php
Expand Up @@ -13,7 +13,7 @@ class TermObjectMutation {
* and mapped from input args to WordPress $args
*
* @throws \GraphQL\Error\UserError User error for invalid term.
*
*
* @param array $input The input from the GraphQL Request
* @param \WP_Taxonomy $taxonomy The Taxonomy object for the type of term being mutated
* @param string $mutation_name The name of the mutation (create, update, etc)
Expand Down
4 changes: 2 additions & 2 deletions src/Mutation/PostObjectCreate.php
Expand Up @@ -128,7 +128,7 @@ public static function get_input_fields( $post_type_object ) {
'attachment',
'revision',
],
true
true
) ) {
$fields['parentId'] = [
'type' => 'ID',
Expand Down Expand Up @@ -273,7 +273,7 @@ public static function mutate_and_get_payload( $post_type_object, $mutation_name
'draft',
'pending',
],
true
true
) ) {
$intended_post_status = 'pending';
}
Expand Down
4 changes: 2 additions & 2 deletions src/Registry/TypeRegistry.php
Expand Up @@ -225,7 +225,7 @@ protected function get_eager_type_map() {
function ( $type_name ) {
return $this->get_type( $type_name );
},
$this->eager_type_map
$this->eager_type_map
);
}

Expand Down Expand Up @@ -560,7 +560,7 @@ public function init_type_registry( self $type_registry ) {
'resolve' => static function () {
return get_site_url();
},
]
]
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Registry/Utils/PostObject.php
Expand Up @@ -495,7 +495,7 @@ private static function register_attachment_fields( WP_Post_Type $post_type_obje
],
$src,
null,
$source->ID
$source->ID
);

return ! empty( $sizes ) ? $sizes : null;
Expand Down
6 changes: 3 additions & 3 deletions src/Registry/Utils/TermObject.php
Expand Up @@ -214,12 +214,12 @@ protected static function get_connections( WP_Taxonomy $tax_object ) {
'field' => 'term_id',
'include_children' => false,
],
]
]
);

return $resolver->get_connection();
},
]
]
);

// We won't need to register this connection again.
Expand All @@ -243,7 +243,7 @@ protected static function get_connections( WP_Taxonomy $tax_object ) {
'field' => 'term_id',
'include_children' => false,
],
]
]
);

return $resolver->get_connection();
Expand Down
8 changes: 4 additions & 4 deletions src/Type/Connection/Comments.php
Expand Up @@ -44,8 +44,8 @@ public static function register_connections() {
return $resolver->set_query_arg( 'user_id', absint( $user->userId ) )->get_connection();
},

]
)
]
)
);

register_graphql_connection(
Expand All @@ -61,8 +61,8 @@ public static function register_connections() {

return ! empty( $comment->comment_parent_id ) ? $resolver->one_to_one()->set_query_arg( 'comment__in', [ $comment->comment_parent_id ] )->get_connection() : null;
},
]
)
]
)
);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Type/Connection/MenuItems.php
Expand Up @@ -74,7 +74,7 @@ public static function register_connections() {
'include_children' => true,
'operator' => 'IN',
],
]
]
);

return $resolver->get_connection();
Expand Down
12 changes: 6 additions & 6 deletions src/Type/Connection/PostObjects.php
Expand Up @@ -43,7 +43,7 @@ public static function register_connections() {

return $resolver->get_connection();
},
]
]
);

register_graphql_connection(
Expand All @@ -62,7 +62,7 @@ public static function register_connections() {

return $resolver->one_to_one()->set_query_arg( 'p', $id )->set_query_arg( 'post_parent', null )->get_connection();
},
]
]
);

register_graphql_connection(
Expand All @@ -82,7 +82,7 @@ public static function register_connections() {

return $resolver->one_to_one()->get_connection();
},
]
]
);

register_graphql_connection(
Expand Down Expand Up @@ -118,7 +118,7 @@ public static function register_connections() {

return $resolver->one_to_one()->get_connection();
},
]
]
);

register_graphql_connection(
Expand All @@ -141,7 +141,7 @@ public static function register_connections() {

return $resolver->get_connection();
},
]
]
);

register_graphql_connection(
Expand All @@ -164,7 +164,7 @@ public static function register_connections() {

return $resolver->get_connection();
},
]
]
);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Type/InterfaceType/Commenter.php
Expand Up @@ -68,7 +68,7 @@ public static function register_type( TypeRegistry $type_registry ) {
'description' => __( 'Whether the author information is considered restricted. (not fully public)', 'wp-graphql' ),
],
],
]
]
);
}
}
2 changes: 1 addition & 1 deletion src/Type/InterfaceType/Edge.php
Expand Up @@ -28,7 +28,7 @@ public static function register_type( TypeRegistry $type_registry ): void {
'description' => __( 'The connected node', 'wp-graphql' ),
],
],
]
]
);
}
}
2 changes: 1 addition & 1 deletion src/Type/InterfaceType/MenuItemLinkable.php
Expand Up @@ -41,7 +41,7 @@ public static function register_type( TypeRegistry $type_registry ): void {

return $type;
},
]
]
);
}
}
2 changes: 1 addition & 1 deletion src/Type/InterfaceType/OneToOneConnection.php
Expand Up @@ -25,7 +25,7 @@ public static function register_type( TypeRegistry $type_registry ): void {
'description' => __( 'The connected node', 'wp-graphql' ),
],
],
]
]
);
}
}

0 comments on commit b1d85e8

Please sign in to comment.