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) {
@@ 5526-5532 (lines=7) @@
5523
            } else if (!empty($jsonFormat)) {
5524
                foreach ($jsonFormat as $key => $row) {
5525
                    if (!empty($key)) {
5526
                        if (is_array($row)) {
5527
                            if (isset($row[0]['value'])) {
5528
                                $value = $row[0]['value'];
5529
                            }
5530
                        } else {
5531
                            $value = $row;
5532
                        }
5533
                        if (isset($value) && $value !== '') {
5534
                            $property[$key] = $value;
5535
                        }