Code Duplication    Length = 3-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 1603-1605 (lines=3) @@
1600
                $value = isset($ph[$key]) ? $ph[$key] : '';
1601
            }
1602
1603
            if (is_array($value)) {
1604
                $value = getTVDisplayFormat($value[0], $value[1], $value[2], $value[3], $value[4]);
1605
            }
1606
1607
            $s = &$matches[0][$i];
1608
            if ($modifiers !== false) {
@@ 5821-5827 (lines=7) @@
5818
                } else if (!empty($jsonFormat)) {
5819
                    foreach ($jsonFormat as $key => $row) {
5820
                        if (!empty($key)) {
5821
                            if (is_array($row)) {
5822
                                if (isset($row[0]['value'])) {
5823
                                    $value = $row[0]['value'];
5824
                                }
5825
                            } else {
5826
                                $value = $row;
5827
                            }
5828
                            if (isset($value) && $value !== '') {
5829
                                $property[$key] = $value;
5830
                            }