Skip to content

Commit

Permalink
coding style: cs-fixer is_null() rule
Browse files Browse the repository at this point in the history
  • Loading branch information
xlii-chl committed Apr 10, 2022
1 parent 7f59506 commit a8d5b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Helpers/html_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function script_tag($src = '', bool $indexPage = false): string
}
} else {
// for attributes without values, like async or defer, use NULL.
$script .= $k . (is_null($v) ? ' ' : '="' . $v . '" ');
$script .= $k . (null === $v ? ' ' : '="' . $v . '" ');
}
}

Expand Down

0 comments on commit a8d5b89

Please sign in to comment.