Skip to content

Commit

Permalink
Empty exception ignore move
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 21, 2023
1 parent 935f130 commit 196b43c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@

<exclude name="WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE" />
</rule>

<rule ref="Generic.CodeAnalysis.EmptyStatement.DetectedCatch">
<exclude-pattern>src/Extension.php</exclude-pattern>
</rule>
</ruleset>
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function fulfill_order( $payment ) {
);

$merge_tags_prop->setValue( $fields, $merge_tags );
} catch ( \Exception $e ) {
} catch ( \Exception $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
// Nothing to do.
}

Expand Down

0 comments on commit 196b43c

Please sign in to comment.