Skip to content

Commit 7b2148b

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 60c105e commit 7b2148b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/app/Library/CrudPanel/Traits/Reorder.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,21 @@ public function updateTreeOrder($request)
3636
$item[$columns['depth']] = empty($item['depth']) ? null : (int) $item['depth'];
3737
$item[$columns['lft']] = empty($item['left']) ? null : (int) $item['left'];
3838
$item[$columns['rgt']] = empty($item['right']) ? null : (int) $item['right'];
39-
39+
4040
// unset mapped items properties.
41-
if($columns['parent_id'] !== 'parent_id') { unset($item['parent_id']); };
42-
if($columns['depth'] !== 'depth') { unset($item['depth']); }
43-
if($columns['lft'] !== 'left') { unset($item['left']); }
44-
if($columns['rgt'] !== 'right') { unset($item['right']); }
45-
41+
if ($columns['parent_id'] !== 'parent_id') {
42+
unset($item['parent_id']);
43+
}
44+
if ($columns['depth'] !== 'depth') {
45+
unset($item['depth']);
46+
}
47+
if ($columns['lft'] !== 'left') {
48+
unset($item['left']);
49+
}
50+
if ($columns['rgt'] !== 'right') {
51+
unset($item['right']);
52+
}
53+
4654
// unset the item_id property
4755
unset($item['item_id']);
4856

0 commit comments

Comments
 (0)