1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-30 19:49:54 +02:00

[ticket/15540] Fix tests and small fixes

PHPBB3-15540
This commit is contained in:
rubencm
2020-08-15 12:48:23 +00:00
parent cc0d4efc8f
commit 5fd2c51ca8
8 changed files with 43 additions and 168 deletions

View File

@@ -15,24 +15,25 @@ namespace phpbb\search;
use phpbb\config\config;
use phpbb\di\service_collection;
use phpbb\search\backend\search_backend_interface;
class search_backend_factory
{
/**
* @var \phpbb\config\config
* @var config
*/
protected $config;
/**
* @var \phpbb\di\service_collection
* @var service_collection
*/
protected $search_backends;
/**
* Constructor
*
* @param \phpbb\config\config $config
* @param \phpbb\di\service_collection $search_backends
* @param config $config
* @param service_collection $search_backends
*/
public function __construct(config $config, service_collection $search_backends)
{
@@ -45,7 +46,7 @@ class search_backend_factory
*
* @param string $class
*
* @return \phpbb\search\backend\search_backend_interface
* @return search_backend_interface
*/
public function get($class)
{
@@ -55,7 +56,7 @@ class search_backend_factory
/**
* Obtains active search backend
*
* @return \phpbb\search\backend\search_backend_interface
* @return search_backend_interface
*/
public function get_active()
{