standard_search   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A supportsMethod() 0 9 2
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
introduced by
The condition $return is always false.
Loading history...
31
			$return = parent::supportsMethod($methodName, $query_params);
32
33
		return $return;
34
	}
35
}
36
37
?>