Skip to content

Commit 4515364

Browse files
committed
[skip ci] Use single quotes for string comparisons in JsUtils
Replaces double quotes with single quotes when checking for empty strings in parameter validation. This improves consistency and adheres to common PHP coding standards.
1 parent 611cbc8 commit 4515364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Ajax/JsUtils.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ public function __construct(array $params = array(), mixed $injected = NULL) {
216216
'autoActiveLinks' => true
217217
];
218218
foreach ($defaults as $key => $val) {
219-
if (isset($params[$key]) === false || $params[$key] === "") {
219+
if (isset($params[$key]) === false || $params[$key] === '') {
220220
$params[$key] = $defaults[$key];
221221
}
222222
}
223223
foreach ($ajaxDefault as $key => $val) {
224-
if (isset($params["ajax"][$key]) === false || $params["ajax"][$key] === "") {
225-
$params["ajax"][$key] = $ajaxDefault[$key];
224+
if (isset($params['ajax'][$key]) === false || $params['ajax'][$key] === '') {
225+
$params['ajax'][$key] = $ajaxDefault[$key];
226226
}
227227
}
228228

0 commit comments

Comments
 (0)