Skip to content

Commit

Permalink
- phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Jul 19, 2023
1 parent cf800f9 commit 18da2f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Utils/QueryAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ public function get_query_id(): ?string {


/**
* @param Type $type The Type of field
* @param FieldDefinition $field_def The field definition the type is for
* @param \GraphQL\Type\Definition\Type $type The Type of field
* @param \GraphQL\Type\Definition\FieldDefinition $field_def The field definition the type is for
* @param mixed $parent_type The Parent Type
* @param bool $is_list_type Whether the field is a list type field
*
* @return Type|String|null
* @return \GraphQL\Type\Definition\Type|String|null
*/
public function get_wrapped_field_type( Type $type, FieldDefinition $field_def, $parent_type, bool $is_list_type = false ) {

Expand All @@ -328,8 +328,8 @@ public function get_wrapped_field_type( Type $type, FieldDefinition $field_def,
// Determine if we're dealing with a connection
if ( $type instanceof ObjectType || $type instanceof InterfaceType ) {

$interfaces = method_exists( $type, 'getInterfaces' ) ? $type->getInterfaces() : [];
$interface_names = ! empty( $interfaces ) ? array_map( static function( InterfaceType $interface ) {
$interfaces = method_exists( $type, 'getInterfaces' ) ? $type->getInterfaces() : [];
$interface_names = ! empty( $interfaces ) ? array_map( static function ( InterfaceType $interface ) {
return $interface->name;
}, $interfaces ) : [];

Expand Down

0 comments on commit 18da2f0

Please sign in to comment.