Code Duplication    Length = 5-6 lines in 2 locations

includes/EditPage.php 2 locations

@@ 1843-1848 (lines=6) @@
1840
		}
1841
1842
		$this->contentLength = strlen( $this->textbox1 );
1843
		if ( $this->contentLength > $wgMaxArticleSize * 1024 ) {
1844
			// Error will be displayed by showEditForm()
1845
			$this->tooBig = true;
1846
			$status->setResult( false, self::AS_CONTENT_TOO_BIG );
1847
			return $status;
1848
		}
1849
1850
		if ( !$wgUser->isAllowed( 'edit' ) ) {
1851
			if ( $wgUser->isAnon() ) {
@@ 2142-2146 (lines=5) @@
2139
2140
		// Check for length errors again now that the section is merged in
2141
		$this->contentLength = strlen( $this->toEditText( $content ) );
2142
		if ( $this->contentLength > $wgMaxArticleSize * 1024 ) {
2143
			$this->tooBig = true;
2144
			$status->setResult( false, self::AS_MAX_ARTICLE_SIZE_EXCEEDED );
2145
			return $status;
2146
		}
2147
2148
		$flags = EDIT_AUTOSUMMARY |
2149
			( $new ? EDIT_NEW : EDIT_UPDATE ) |