PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/SearchAlgorithm.php +5 -5 4.5.15.3.5 View file →
@@ -22,9 +22,9 @@
22 22 * Return the Search Algorithm slug.
23 23 *
24 24 * @return string
25 25 */
26 - abstract public function get_slug() : string;
26 + abstract public function get_slug(): string;
27 27
28 28 /**
29 29 * Return the Search Algorithm human readable name.
30 30 *
@@ -29,9 +29,9 @@
29 29 * Return the Search Algorithm human readable name.
30 30 *
31 31 * @return string
32 32 */
33 - abstract public function get_name() : string;
33 + abstract public function get_name(): string;
34 34
35 35 /**
36 36 * Return the Search Algorithm description.
37 37 *
@@ -36,9 +36,9 @@
36 36 * Return the Search Algorithm description.
37 37 *
38 38 * @return string
39 39 */
40 - abstract public function get_description() : string;
40 + abstract public function get_description(): string;
41 41
42 42 /**
43 43 * Return the Elasticsearch `query` clause.
44 44 *
@@ -47,9 +47,9 @@
47 47 * @param array $search_fields Search fields
48 48 * @param array $query_vars Query vars
49 49 * @return array ES `query`
50 50 */
51 - abstract protected function get_raw_query( string $indexable_slug, string $search_term, array $search_fields, array $query_vars ) : array;
51 + abstract protected function get_raw_query( string $indexable_slug, string $search_term, array $search_fields, array $query_vars ): array;
52 52
53 53 /**
54 54 * Wrapper for the `get_raw_query`, making sure the `ep_{$indexable_slug}_formatted_args_query` filter is applied.
55 55 *
@@ -58,9 +58,9 @@
58 58 * @param array $search_fields Search fields
59 59 * @param array $query_vars Query vars
60 60 * @return array ES `query`
61 61 */
62 - public function get_query( string $indexable_slug, string $search_term, array $search_fields, array $query_vars ) : array {
62 + public function get_query( string $indexable_slug, string $search_term, array $search_fields, array $query_vars ): array {
63 63 $query = $this->get_raw_query( $indexable_slug, $search_term, $search_fields, $query_vars );
64 64
65 65 /**
66 66 * Filter formatted Elasticsearch query (only contains query part)