Code Duplication    Length = 3-7 lines in 2 locations

core/src/Core.php 2 locations

@@ 1156-1158 (lines=3) @@
1153
                $value = isset($ph[$key]) ? $ph[$key] : '';
1154
            }
1155
1156
            if (is_array($value)) {
1157
                $value = getTVDisplayFormat($value[0], $value[1], $value[2], $value[3], $value[4]);
1158
            }
1159
1160
            $s = &$matches[0][$i];
1161
            if ($modifiers !== false) {
@@ 5316-5322 (lines=7) @@
5313
                } else if (!empty($jsonFormat)) {
5314
                    foreach ($jsonFormat as $key => $row) {
5315
                        if (!empty($key)) {
5316
                            if (is_array($row)) {
5317
                                if (isset($row[0]['value'])) {
5318
                                    $value = $row[0]['value'];
5319
                                }
5320
                            } else {
5321
                                $value = $row;
5322
                            }
5323
                            if (isset($value) && $value !== '') {
5324
                                $property[$key] = $value;
5325
                            }