Skip to content

Commit 14c19b1

Browse files
Merge pull request #456 from contactashish13/issue-437-1
compare header names loosely
2 parents cafbf63 + 501ff76 commit 14c19b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/Visualizer/Source/Json.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ private function _fetchData() {
401401
foreach ( $data as $line ) {
402402
$data_row = array();
403403
foreach ( $line as $header => $value ) {
404-
if ( in_array( $header, $headers, true ) ) {
404+
// phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict
405+
if ( in_array( $header, $headers ) ) {
405406
$data_row[] = $value;
406407
}
407408
}

0 commit comments

Comments
 (0)