Code Duplication    Length = 3-3 lines in 2 locations

includes/parser/Parser.php 1 location

@@ 1199-1201 (lines=3) @@
1196
		}
1197
1198
		# Remove trailing line-ending (b/c)
1199
		if ( substr( $out, -1 ) === "\n" ) {
1200
			$out = substr( $out, 0, -1 );
1201
		}
1202
1203
		# special case: don't return empty table
1204
		if ( $out === "<table>\n<tr><td></td></tr>\n</table>" ) {

includes/libs/objectcache/MemcachedClient.php 1 location

@@ 1276-1278 (lines=3) @@
1273
		}
1274
		if ( substr( $result, -2 ) === "\r\n" ) {
1275
			$result = substr( $result, 0, -2 );
1276
		} elseif ( substr( $result, -1 ) === "\n" ) {
1277
			$result = substr( $result, 0, -1 );
1278
		} else {
1279
			$this->_handle_error( $sock, 'line ending missing in response from $1' );
1280
			return false;
1281
		}