Code Duplication    Length = 5-5 lines in 2 locations

typo3/sysext/core/Classes/Utility/GeneralUtility.php 2 locations

@@ 310-314 (lines=5) @@
307
            $values = self::trimExplode(',', $list, true);
308
            foreach ($values as $test) {
309
                $testList = explode('/', $test);
310
                if (count($testList) === 2) {
311
                    list($test, $mask) = $testList;
312
                } else {
313
                    $mask = false;
314
                }
315
                if ((int)$mask) {
316
                    // "192.168.3.0/24"
317
                    $lnet = ip2long($test);
@@ 358-362 (lines=5) @@
355
        $values = self::trimExplode(',', $list, true);
356
        foreach ($values as $test) {
357
            $testList = explode('/', $test);
358
            if (count($testList) === 2) {
359
                list($test, $mask) = $testList;
360
            } else {
361
                $mask = false;
362
            }
363
            if (self::validIPv6($test)) {
364
                $test = self::normalizeIPv6($test);
365
                $maskInt = (int)$mask ?: 128;