Code Duplication    Length = 5-5 lines in 3 locations

Sources/Post.php 3 locations

@@ 1556-1560 (lines=5) @@
1553
		}
1554
1555
		// If drafts are enabled, then pass this off
1556
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
1557
		{
1558
			SaveDraft($post_errors);
1559
			return Post();
1560
		}
1561
1562
		// If the number of replies has changed, if the setting is enabled, go back to Post() - which handles the error.
1563
		if (isset($_POST['last_msg']) && $topic_info['id_last_msg'] > $_POST['last_msg'])
@@ 1601-1605 (lines=5) @@
1598
			unset($_POST['sticky']);
1599
1600
		// Saving your new topic as a draft first?
1601
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
1602
		{
1603
			SaveDraft($post_errors);
1604
			return Post();
1605
		}
1606
1607
		$posterIsGuest = $user_info['is_guest'];
1608
	}
@@ 1696-1700 (lines=5) @@
1693
		}
1694
1695
		// If drafts are enabled, then lets send this off to save
1696
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
1697
		{
1698
			SaveDraft($post_errors);
1699
			return Post();
1700
		}
1701
1702
		$posterIsGuest = empty($row['id_member']);
1703