Code Duplication    Length = 3-3 lines in 2 locations

htdocs/xoops_lib/Xoops/Locale/MessageFormatter.php 2 locations

@@ 380-382 (lines=3) @@
377
                $c = count($select);
378
                $message = false;
379
                for ($i = 0; $i + 1 < $c; $i++) {
380
                    if (is_array($select[$i]) || !is_array($select[$i + 1])) {
381
                        return false;
382
                    }
383
                    $selector = trim($select[$i++]);
384
                    if ($message === false && $selector === 'other' || $selector == $arg) {
385
                        $message = implode(',', $select[$i]);
@@ 409-411 (lines=3) @@
406
                $message = false;
407
                $offset = 0;
408
                for ($i = 0; $i + 1 < $c; $i++) {
409
                    if (is_array($plural[$i]) || !is_array($plural[$i + 1])) {
410
                        return false;
411
                    }
412
                    $selector = trim($plural[$i++]);
413
414
                    if ($i == 1 && strncmp($selector, 'offset:', 7) === 0) {