Code Duplication    Length = 12-12 lines in 2 locations

lib/Metadata/Driver/ArrayDriver.php 2 locations

@@ 70-81 (lines=12) @@
67
            ], $gridConfig);
68
69
            $columns = [];
70
            foreach ($gridConfig['columns'] as $columnName => $columnConfig) {
71
                $columnConfig = $this->resolveConfig([
72
                    'type' => null,
73
                    'options' => [],
74
                ], $columnConfig);
75
76
                $columns[$columnName] = new ColumnMetadata(
77
                    $columnName,
78
                    $columnConfig['type'],
79
                    $columnConfig['options']
80
                );
81
            }
82
83
            $filters = [];
84
            foreach ($gridConfig['filters'] as $filterName => $filterConfig) {
@@ 100-111 (lines=12) @@
97
            }
98
99
            $actions = [];
100
            foreach ($gridConfig['actions'] as $actionName => $actionConfig) {
101
                $actionConfig = $this->resolveConfig([
102
                    'type' => null,
103
                    'options' => [],
104
                ], $actionConfig);
105
106
                $actions[$actionName] = new ActionMetadata(
107
                    $actionName,
108
                    $actionConfig['type'],
109
                    $actionConfig['options']
110
                );
111
            }
112
113
            $grids[$gridName] = new GridMetadata(
114
                $gridName,