Code Duplication    Length = 3-3 lines in 2 locations

lib/SSpkS/Package/Package.php 2 locations

@@ 222-224 (lines=3) @@
219
        } catch (\Exception $e) {
220
            // Check if icon is in metadata
221
            $this->collectMetadata();
222
            if (isset($this->metadata['package_icon'])) {
223
                file_put_contents($this->filepathNoExt . '_thumb_72.png', base64_decode($this->metadata['package_icon']));
224
            }
225
        }
226
        /* Synology itself uses 256x256 img for the 120 thumb (see the Calendar package) */
227
        try {
@@ 232-234 (lines=3) @@
229
        } catch (\Exception $e) {
230
            // Check if icon is in metadata
231
            $this->collectMetadata();
232
            if (isset($this->metadata['package_icon_256'])) {
233
                file_put_contents($this->filepathNoExt . '_thumb_120.png', base64_decode($this->metadata['package_icon_256']));
234
            }
235
        }
236
        $thumbnails = array();
237
        foreach (array('72', '120') as $size) {