Skip to content

Commit ff2819f

Browse files
committed
chore: remove curly brace
1 parent 0390273 commit ff2819f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Html/Editor/Editor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ public function hiddenOnCreate(array $fields): static
294294
public function hiddenOn(string $action, array $fields): static
295295
{
296296
$script = 'function(e, mode, action) {';
297-
$script .= "if (action === '{$action}') {";
297+
$script .= "if (action === '$action') {";
298298
foreach ($fields as $field) {
299-
$script .= "this.hide('{$field}');";
299+
$script .= "this.hide('$field');";
300300
}
301301
$script .= '} else {';
302302
foreach ($fields as $field) {
303-
$script .= "this.show('{$field}');";
303+
$script .= "this.show('$field');";
304304
}
305305
$script .= '}';
306306
$script .= 'return true;';

0 commit comments

Comments
 (0)