Code Duplication    Length = 10-10 lines in 2 locations

src/Offer/Events/AbstractGeoCoordinatesUpdated.php 1 location

@@ 51-60 (lines=10) @@
48
     * @param array $data
49
     * @return static
50
     */
51
    public static function deserialize(array $data)
52
    {
53
        return new static(
54
            $data['item_id'],
55
            new Coordinates(
56
                new Latitude($data['coordinates']['lat']),
57
                new Longitude($data['coordinates']['long'])
58
            )
59
        );
60
    }
61
}
62

src/Organizer/Events/GeoCoordinatesUpdated.php 1 location

@@ 48-57 (lines=10) @@
45
     * @param array $data
46
     * @return static
47
     */
48
    public static function deserialize(array $data)
49
    {
50
        return new static(
51
            $data['item_id'],
52
            new Coordinates(
53
                new Latitude($data['coordinates']['lat']),
54
                new Longitude($data['coordinates']['long'])
55
            )
56
        );
57
    }
58
59
    /**
60
     * Convert the object to json ld.