Code Duplication    Length = 4-8 lines in 2 locations

Sources/SearchAPI-Fulltext.php 1 location

@@ 105-112 (lines=8) @@
102
				'fulltext_minimum_word_length' => 'ft_min_word_len',
103
			)
104
		);
105
		if ($request !== false && $smcFunc['db_num_rows']($request) == 1)
106
		{
107
			list (, $min_word_length) = $smcFunc['db_fetch_row']($request);
108
			$smcFunc['db_free_result']($request);
109
		}
110
		// 4 is the MySQL default...
111
		else
112
			$min_word_length = 4;
113
114
		return $min_word_length;
115
	}

Sources/RepairBoards.php 1 location

@@ 1609-1612 (lines=4) @@
1606
			);
1607
1608
			// Does it need a fix?
1609
			if (!empty($test['check_type']) && $test['check_type'] == 'count')
1610
				list ($needs_fix) = $smcFunc['db_fetch_row']($request);
1611
			else
1612
				$needs_fix = $smcFunc['db_num_rows']($request);
1613
1614
			$total_queries++;
1615