Code Duplication    Length = 9-10 lines in 2 locations

typo3/sysext/core/Classes/Database/QueryView.php 2 locations

@@ 207-215 (lines=9) @@
204
     * @param int $index
205
     * @return array
206
     */
207
    public function addToStoreQueryConfigs($storeQueryConfigs, $index)
208
    {
209
        $keyArr = explode(',', $this->storeList);
210
        $storeQueryConfigs[$index] = [];
211
        foreach ($keyArr as $k) {
212
            $storeQueryConfigs[$index][$k] = $GLOBALS['SOBE']->MOD_SETTINGS[$k];
213
        }
214
        return $storeQueryConfigs;
215
    }
216
217
    /**
218
     * Save query in action
@@ 276-285 (lines=10) @@
273
     * @param array $writeArray
274
     * @return array
275
     */
276
    public function loadStoreQueryConfigs($storeQueryConfigs, $storeIndex, $writeArray)
277
    {
278
        if ($storeQueryConfigs[$storeIndex]) {
279
            $keyArr = explode(',', $this->storeList);
280
            foreach ($keyArr as $k) {
281
                $writeArray[$k] = $storeQueryConfigs[$storeIndex][$k];
282
            }
283
        }
284
        return $writeArray;
285
    }
286
287
    /**
288
     * Process store control