Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Aug 31, 2024
1 parent 06183dd commit c767aa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
8 changes: 0 additions & 8 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,4 @@
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedComparison"/>
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedBool"/>
</rule>

<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="requiredSpacesAfterOpen" value="0"/>
<property name="requiredSpacesBeforeClose" value="0"/>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
</ruleset>
12 changes: 7 additions & 5 deletions includes/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -2186,11 +2186,13 @@ function pods_shortcode_run( $tags, $content = null, $blog_is_switched = false,
pods_debug_log_data( [ 'field_name' => $tags['related_field'], 'sql' => $params ], 'shortcode-field-params', __METHOD__, __LINE__ );

// Override the Pods object.
$pod_check = $pod->field( [
'name' => $tags['related_field'],
'output' => 'find',
'params' => $params,
] );
$pod_check = $pod->field(
[
'name' => $tags['related_field'],
'output' => 'find',
'params' => $params,
]
);

if ( ! $pod_check instanceof Pods ) {
$related_field = $pod->pod_data->get_field( $tags['related_field'] );
Expand Down

0 comments on commit c767aa3

Please sign in to comment.