Code Duplication    Length = 16-16 lines in 2 locations

lib/Metadata/Driver/ArrayDriver.php 2 locations

@@ 69-84 (lines=16) @@
66
            ], $gridConfig);
67
68
            $columns = [];
69
            foreach ($gridConfig['columns'] as $columnName => $columnConfig) {
70
                $columnConfig = $this->resolveConfig([
71
                    'type' => null,
72
                    'tags' => [],
73
                    'groups' => [],
74
                    'options' => [],
75
                ], $columnConfig);
76
77
                $columns[$columnName] = new ColumnMetadata(
78
                    $columnName,
79
                    $columnConfig['type'],
80
                    $columnConfig['groups'],
81
                    $columnConfig['options'],
82
                    $columnConfig['tags']
83
                );
84
            }
85
86
            $filters = [];
87
            foreach ($gridConfig['filters'] as $filterName => $filterConfig) {
@@ 87-102 (lines=16) @@
84
            }
85
86
            $filters = [];
87
            foreach ($gridConfig['filters'] as $filterName => $filterConfig) {
88
                $filterConfig = $this->resolveConfig([
89
                    'type' => null,
90
                    'field' => null,
91
                    'options' => [],
92
                    'tags' => [],
93
                ], $filterConfig);
94
95
                $filters[$filterName] = new FilterMetadata(
96
                    $filterName,
97
                    $filterConfig['type'],
98
                    $filterConfig['field'],
99
                    $filterConfig['options'],
100
                    $filterConfig['tags']
101
                );
102
            }
103
104
            $actions = [];
105
            foreach ($gridConfig['actions'] as $actionName => $actionConfig) {