Code Duplication    Length = 6-6 lines in 2 locations

src/actions/AdjacencyList/FullTreeDataAction.php 1 location

@@ 135-140 (lines=6) @@
132
            );
133
        }
134
135
        if (array_key_exists($current_selected_id, $result)) {
136
            $result[$current_selected_id] = array_merge(
137
                $result[$current_selected_id],
138
                ['state' => ['opened' => true, 'selected' => true]]
139
            );
140
        }
141
142
        return array_values($result);
143
    }

src/actions/AdjacencyList/PartialTreeDataAction.php 1 location

@@ 147-152 (lines=6) @@
144
            );
145
        }
146
147
        if (array_key_exists($current_selected_id, $result)) {
148
            $result[$current_selected_id] = array_merge(
149
                $result[$current_selected_id],
150
                ['state' => ['opened' => true, 'selected' => true]]
151
            );
152
        }
153
154
        return array_values($result);
155
    }