Code Duplication    Length = 5-6 lines in 2 locations

includes/EditPage.php 2 locations

@@ 1748-1753 (lines=6) @@
1745
		}
1746
1747
		$this->kblength = (int)( strlen( $this->textbox1 ) / 1024 );
1748
		if ( $this->kblength > $wgMaxArticleSize ) {
1749
			// Error will be displayed by showEditForm()
1750
			$this->tooBig = true;
1751
			$status->setResult( false, self::AS_CONTENT_TOO_BIG );
1752
			return $status;
1753
		}
1754
1755
		if ( !$wgUser->isAllowed( 'edit' ) ) {
1756
			if ( $wgUser->isAnon() ) {
@@ 2022-2026 (lines=5) @@
2019
2020
		// Check for length errors again now that the section is merged in
2021
		$this->kblength = (int)( strlen( $this->toEditText( $content ) ) / 1024 );
2022
		if ( $this->kblength > $wgMaxArticleSize ) {
2023
			$this->tooBig = true;
2024
			$status->setResult( false, self::AS_MAX_ARTICLE_SIZE_EXCEEDED );
2025
			return $status;
2026
		}
2027
2028
		$flags = EDIT_AUTOSUMMARY |
2029
			( $new ? EDIT_NEW : EDIT_UPDATE ) |