Code Duplication    Length = 3-3 lines in 2 locations

src/helpers.php 2 locations

@@ 151-153 (lines=3) @@
148
            $parts = explode('.', $column, 2);
149
150
            if (isset($parts[0])) {
151
                if (!isset($names[$parts[0]])) {
152
                    $names[$parts[0]] = null;
153
                }
154
155
                if (isset($parts[1])) {
156
                    if ($names[$parts[0]] === null) {
@@ 156-158 (lines=3) @@
153
                }
154
155
                if (isset($parts[1])) {
156
                    if ($names[$parts[0]] === null) {
157
                        $names[$parts[0]] = [];
158
                    }
159
160
                    $child = get_unflat_columns($parts[1]);
161
                    $names[$parts[0]][key($child)] = current($child);