Code Duplication    Length = 3-3 lines in 3 locations

src/eXpansion/Bundle/LocalRecords/Model/Base/Record.php 2 locations

@@ 1207-1209 (lines=3) @@
1204
            $keys[8] => $this->getCreatedAt(),
1205
            $keys[9] => $this->getUpdatedAt(),
1206
        );
1207
        if ($result[$keys[8]] instanceof \DateTime) {
1208
            $result[$keys[8]] = $result[$keys[8]]->format('c');
1209
        }
1210
1211
        if ($result[$keys[9]] instanceof \DateTime) {
1212
            $result[$keys[9]] = $result[$keys[9]]->format('c');
@@ 1211-1213 (lines=3) @@
1208
            $result[$keys[8]] = $result[$keys[8]]->format('c');
1209
        }
1210
1211
        if ($result[$keys[9]] instanceof \DateTime) {
1212
            $result[$keys[9]] = $result[$keys[9]]->format('c');
1213
        }
1214
1215
        $virtualColumns = $this->virtualColumns;
1216
        foreach ($virtualColumns as $key => $virtualColumn) {

src/eXpansion/Framework/PlayersBundle/Model/Base/Player.php 1 location

@@ 1092-1094 (lines=3) @@
1089
            $keys[6] => $this->getOnlineTime(),
1090
            $keys[7] => $this->getLastOnline(),
1091
        );
1092
        if ($result[$keys[7]] instanceof \DateTime) {
1093
            $result[$keys[7]] = $result[$keys[7]]->format('c');
1094
        }
1095
1096
        $virtualColumns = $this->virtualColumns;
1097
        foreach ($virtualColumns as $key => $virtualColumn) {