Code Duplication    Length = 12-13 lines in 2 locations

src/Charcoal/Property/AudioProperty.php 1 location

@@ 94-106 (lines=13) @@
91
     *
92
     * @return string[]
93
     */
94
    public function getDefaultAcceptedMimetypes()
95
    {
96
        return [
97
            'audio/mp3',
98
            'audio/mpeg',
99
            'audio/ogg',
100
            'audio/webm',
101
            'audio/wav',
102
            'audio/wave',
103
            'audio/x-wav',
104
            'audio/x-pn-wav',
105
        ];
106
    }
107
108
    /**
109
     * Resolve the file extension from the given MIME type.

src/Charcoal/Property/ImageProperty.php 1 location

@@ 271-282 (lines=12) @@
268
     *
269
     * @return string[]
270
     */
271
    public function getDefaultAcceptedMimetypes()
272
    {
273
        return [
274
            'image/gif',
275
            'image/jpg',
276
            'image/jpeg',
277
            'image/pjpeg',
278
            'image/png',
279
            'image/svg+xml',
280
            'image/webp',
281
        ];
282
    }
283
284
    /**
285
     * Resolve the file extension from the given MIME type.