Skip to content

Commit b537a3d

Browse files
authored
Apply suggestions from code review
1 parent 9610218 commit b537a3d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/Registry.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public function get_registered_fields() {
5656

5757
/**
5858
* Get the TypeRegistry instance
59-
*
60-
* @return \WPGraphQL\Registry\TypeRegistry
6159
*/
6260
public function get_type_registry(): TypeRegistry {
6361
return $this->type_registry;

src/WPGraphQLAcf.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,10 @@ protected function is_preview_post( int $post_id ) {
143143
*
144144
* NOTE: this currently only works if classic editor is not being used
145145
*
146-
* @param bool $should Whether to resolve using the parent object. Default true.
147-
* @param int $object_id The ID of the object to resolve meta for
146+
* @param bool $should Whether to resolve using the parent object. Default true.
147+
* @param int $object_id The ID of the object to resolve meta for
148148
* @param string $meta_key The key for the meta to resolve
149-
* @param bool $single Whether a single value should be returned
150-
*
151-
* @return bool
149+
* @param bool $single Whether a single value should be returned
152150
*/
153151
public function preview_support( bool $should, int $object_id, string $meta_key, bool $single ): bool {
154152
if ( ! $this->registry instanceof Registry ) {

0 commit comments

Comments
 (0)