Skip to content

Commit 734e557

Browse files
committed
Adjust integration tests.
The $_GET param produces more than 1 warning.
1 parent 10997ee commit 734e557

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ruleset_test.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ add_option( 'taxonomy_rating_' . $obj->term_id ); // Bad. Warning.
165165

166166
echo "<a href='" . esc_attr( $some_var ) . "'></a>"; // NOK. Error.
167167

168-
$hello = $_GET['utm_medium']; // NOK. Warning.
168+
$hello = true === isset( $_GET['utm_medium'] ) ? true : false; // NOK. Warning 3 times.
169169

170170
?>
171171

ruleset_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
160 => 1,
7474
162 => 1,
7575
164 => 1,
76-
168 => 1,
76+
168 => 3,
7777
),
7878
'messages' => array(
7979
129 => array(

0 commit comments

Comments
 (0)