Skip to content

Commit 8a8d705

Browse files
committed
Ignore code.
1 parent 56e7b49 commit 8a8d705

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Integrations/FormSubmit.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class FormSubmit {
1414
/**
1515
* Build class.
16+
*
1617
* @codeCoverageIgnore
1718
*/
1819
public function __construct() {
@@ -21,7 +22,9 @@ public function __construct() {
2122

2223
/**
2324
* Init
25+
*
2426
* @return void
27+
*
2528
* @codeCoverageIgnore
2629
*/
2730
private function init() {
@@ -42,6 +45,7 @@ private function init() {
4245
/**
4346
* Enqueues the required JavaScript for form submissions integration.
4447
* @return void
48+
*
4549
* @codeCoverageIgnore because there's nothing to test here.
4650
*/
4751
public function add_js() {
@@ -92,9 +96,12 @@ public function maybe_track_submission( $result, $tags ) {
9296
* @param $uri
9397
*
9498
* @return void
99+
*
100+
* @codeCoverageIgnore because we can't test XHR requests here.
95101
*/
96102
private function track_submission( $uri ) {
97103
$proxy = new Proxy( false );
104+
98105
$proxy->do_request(
99106
__( 'WP Form Completions', 'plausible-analytics' ),
100107
null,
@@ -106,12 +113,14 @@ private function track_submission( $uri ) {
106113
/**
107114
* Compatibility fix for Gravity Forms.
108115
*
109-
* @action gform_after_submission
116+
* @action gform_after_submission
110117
*
111118
* @param $form
112119
* @param $entry
113120
*
114121
* @return void
122+
*
123+
* @codeCoverageIgnore because we can't test XHR requests here.
115124
*/
116125
public function track_gravity_forms_submission( $form ) {
117126
$uri = str_replace( home_url(), '', $form[ 'source_url' ] ) ?? '';

0 commit comments

Comments
 (0)