Skip to content

Commit

Permalink
Making Github Action happy: fixig PHPCS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed Jun 15, 2023
1 parent c4d46ad commit a0d423a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/graphql.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ function register_byline_types() {
'resolve' => function( WPGraphQL\Model\Post $profile, array $args ) {
$post_id = $profile->ID;

if ( $profile->isPreview ) {
$post_id = $profile->parentDatabaseId;
if ( $profile->isPreview ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$post_id = $profile->parentDatabaseId; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
}

$format = $args['format'] ?? 'text';
Expand All @@ -110,8 +110,8 @@ function register_byline_types() {
'resolve' => function ( WPGraphQL\Model\Post $profile ) {
$post_id = $profile->ID;

if ( $profile->isPreview ) {
$post_id = $profile->parentDatabaseId;
if ( $profile->isPreview ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$post_id = $profile->parentDatabaseId; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
}

$byline_data = get_post_meta( $post_id, 'byline', true );
Expand Down

0 comments on commit a0d423a

Please sign in to comment.