Code Duplication    Length = 3-3 lines in 2 locations

includes/libs/objectcache/MemcachedClient.php 1 location

@@ 1234-1236 (lines=3) @@
1231
		}
1232
		if ( substr( $result, -2 ) === "\r\n" ) {
1233
			$result = substr( $result, 0, -2 );
1234
		} elseif ( substr( $result, -1 ) === "\n" ) {
1235
			$result = substr( $result, 0, -1 );
1236
		} else {
1237
			$this->_handle_error( $sock, 'line ending missing in response from $1' );
1238
			return false;
1239
		}

includes/parser/Parser.php 1 location

@@ 1183-1185 (lines=3) @@
1180
		}
1181
1182
		# Remove trailing line-ending (b/c)
1183
		if ( substr( $out, -1 ) === "\n" ) {
1184
			$out = substr( $out, 0, -1 );
1185
		}
1186
1187
		# special case: don't return empty table
1188
		if ( $out === "<table>\n<tr><td></td></tr>\n</table>" ) {