Code Duplication    Length = 3-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 1577-1579 (lines=3) @@
1574
                $value = isset($ph[$key]) ? $ph[$key] : '';
1575
            }
1576
1577
            if (is_array($value)) {
1578
                $value = getTVDisplayFormat($value[0], $value[1], $value[2], $value[3], $value[4]);
1579
            }
1580
1581
            $s = &$matches[0][$i];
1582
            if ($modifiers !== false) {
@@ 5795-5801 (lines=7) @@
5792
                } else if (!empty($jsonFormat)) {
5793
                    foreach ($jsonFormat as $key => $row) {
5794
                        if (!empty($key)) {
5795
                            if (is_array($row)) {
5796
                                if (isset($row[0]['value'])) {
5797
                                    $value = $row[0]['value'];
5798
                                }
5799
                            } else {
5800
                                $value = $row;
5801
                            }
5802
                            if (isset($value) && $value !== '') {
5803
                                $property[$key] = $value;
5804
                            }