Issues (1014)

Sources/SearchAPI-Standard.php (1 issue)

Severity
1
<?php
2
3
/**
4
 * Simple Machines Forum (SMF)
5
 *
6
 * @package SMF
7
 * @author Simple Machines https://www.simplemachines.org
8
 * @copyright 2022 Simple Machines and individual contributors
9
 * @license https://www.simplemachines.org/about/smf/license.php BSD
10
 *
11
 * @version 2.1.0
12
 */
13
14
if (!defined('SMF'))
15
	die('No direct access...');
16
17
/**
18
 * Standard non full index, non custom index search
19
 */
20
class standard_search extends search_api
21
{
22
	/**
23
	 * {@inheritDoc}
24
	 */
25
	public function supportsMethod($methodName, $query_params = null)
26
	{
27
		$return = false;
28
29
		// Maybe parent got support
30
		if (!$return)
0 ignored issues
show
The condition $return is always false.
Loading history...
31
			$return = parent::supportsMethod($methodName, $query_params);
32
33
		return $return;
34
	}
35
}
36
37
?>