Skip to content

Commit 2426aa5

Browse files
committed
- phpcs
1 parent 7b9966b commit 2426aa5

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/FieldConfig.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,20 +297,16 @@ public function should_format_field_value( string $field_type ): bool {
297297
* @param string|int|null $post_id
298298
* @param bool $should_format
299299
*
300-
*
301-
*
302300
* @return false|mixed
303301
*/
304302
protected function get_field( string $selector, ?string $parent_field_name = null, $post_id = null, bool $should_format = false ) {
305-
306303
if ( ! empty( $parent_field_name ) ) {
307304
$value = get_sub_field( $selector, $should_format );
308305
} else {
309306
$value = get_field( $selector, $post_id, $should_format );
310307
}
311308

312309
return $value;
313-
314310
}
315311

316312
/**
@@ -404,10 +400,9 @@ public function resolve_field( $root, array $args, AppContext $context, ResolveI
404400

405401
// resolve block field
406402
if ( is_array( $node ) && isset( $node['blockName'] ) && isset( $node['attrs'] ) ) {
407-
408-
$block = acf_prepare_block( $node['attrs'] );
409-
$block_id = acf_get_block_id( $node['attrs'] );
410-
$block_id = acf_ensure_block_id_prefix( $block_id );
403+
$block = acf_prepare_block( $node['attrs'] );
404+
$block_id = acf_get_block_id( $node['attrs'] );
405+
$block_id = acf_ensure_block_id_prefix( $block_id );
411406
acf_setup_meta( $block['data'], $block_id, true );
412407

413408
$return_value = $this->get_field( $field_config['name'], $parent_field_name, $block_id, $should_format_value );

src/FieldType/Repeater.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace WPGraphQL\Acf\FieldType;
33

4-
use WPGraphQL\AppContext;
54
use WPGraphQL\Utils\Utils;
65
use WPGraphQL\Acf\AcfGraphQLFieldType;
76
use WPGraphQL\Acf\FieldConfig;

0 commit comments

Comments
 (0)