Code Duplication    Length = 5-6 lines in 2 locations

src/wp-includes/ID3/module.tag.id3v2.php 2 locations

@@ 1435-1440 (lines=6) @@
1432
*/
1433
					} elseif (is_string($this->getid3->option_save_attachments)) {
1434
						$dir = rtrim(str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $this->getid3->option_save_attachments), DIRECTORY_SEPARATOR);
1435
						if (!is_dir($dir) || !is_writable($dir)) {
1436
							// cannot write, skip
1437
							$info['warning'][] = 'attachment at '.$frame_offset.' cannot be saved to "'.$dir.'" (not writable)';
1438
							unset($parsedFrame['data']);
1439
							break;
1440
						}
1441
					}
1442
					// if we get this far, must be OK
1443
					if (is_string($this->getid3->option_save_attachments)) {
@@ 1445-1449 (lines=5) @@
1442
					// if we get this far, must be OK
1443
					if (is_string($this->getid3->option_save_attachments)) {
1444
						$destination_filename = $dir.DIRECTORY_SEPARATOR.md5($info['filenamepath']).'_'.$frame_offset;
1445
						if (!file_exists($destination_filename) || is_writable($destination_filename)) {
1446
							file_put_contents($destination_filename, $parsedFrame['data']);
1447
						} else {
1448
							$info['warning'][] = 'attachment at '.$frame_offset.' cannot be saved to "'.$destination_filename.'" (not writable)';
1449
						}
1450
						$parsedFrame['data_filename'] = $destination_filename;
1451
						unset($parsedFrame['data']);
1452
					} else {