Code Duplication    Length = 3-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 1332-1334 (lines=3) @@
1329
                $value = isset($ph[$key]) ? $ph[$key] : '';
1330
            }
1331
1332
            if (is_array($value)) {
1333
                $value = getTVDisplayFormat($value[0], $value[1], $value[2], $value[3], $value[4]);
1334
            }
1335
1336
            $s = &$matches[0][$i];
1337
            if ($modifiers !== false) {
@@ 5531-5537 (lines=7) @@
5528
                } else if (!empty($jsonFormat)) {
5529
                    foreach ($jsonFormat as $key => $row) {
5530
                        if (!empty($key)) {
5531
                            if (is_array($row)) {
5532
                                if (isset($row[0]['value'])) {
5533
                                    $value = $row[0]['value'];
5534
                                }
5535
                            } else {
5536
                                $value = $row;
5537
                            }
5538
                            if (isset($value) && $value !== '') {
5539
                                $property[$key] = $value;
5540
                            }