mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12683] Remove unused property
PHPBB3-12683
This commit is contained in:
parent
ac227a9ea6
commit
2e917b6059
5 changed files with 3 additions and 17 deletions
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
namespace phpbb\console\command\searchindex;
|
namespace phpbb\console\command\searchindex;
|
||||||
|
|
||||||
use phpbb\config\config;
|
|
||||||
use phpbb\console\command\command;
|
use phpbb\console\command\command;
|
||||||
use phpbb\language\language;
|
use phpbb\language\language;
|
||||||
use phpbb\log\log;
|
use phpbb\log\log;
|
||||||
|
@ -29,9 +28,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
|
|
||||||
class create extends command
|
class create extends command
|
||||||
{
|
{
|
||||||
/** @var config */
|
|
||||||
protected $config;
|
|
||||||
|
|
||||||
/** @var language */
|
/** @var language */
|
||||||
protected $language;
|
protected $language;
|
||||||
|
|
||||||
|
@ -50,7 +46,6 @@ class create extends command
|
||||||
/**
|
/**
|
||||||
* Construct method
|
* Construct method
|
||||||
*
|
*
|
||||||
* @param config $config
|
|
||||||
* @param language $language
|
* @param language $language
|
||||||
* @param log $log
|
* @param log $log
|
||||||
* @param post_helper $post_helper
|
* @param post_helper $post_helper
|
||||||
|
@ -58,9 +53,8 @@ class create extends command
|
||||||
* @param state_helper $state_helper
|
* @param state_helper $state_helper
|
||||||
* @param user $user
|
* @param user $user
|
||||||
*/
|
*/
|
||||||
public function __construct(config $config, language $language, log $log, post_helper $post_helper, search_backend_factory $search_backend_factory, state_helper $state_helper, user $user)
|
public function __construct(language $language, log $log, post_helper $post_helper, search_backend_factory $search_backend_factory, state_helper $state_helper, user $user)
|
||||||
{
|
{
|
||||||
$this->config = $config;
|
|
||||||
$this->language = $language;
|
$this->language = $language;
|
||||||
$this->log = $log;
|
$this->log = $log;
|
||||||
$this->post_helper = $post_helper;
|
$this->post_helper = $post_helper;
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
namespace phpbb\console\command\searchindex;
|
namespace phpbb\console\command\searchindex;
|
||||||
|
|
||||||
use phpbb\config\config;
|
|
||||||
use phpbb\console\command\command;
|
use phpbb\console\command\command;
|
||||||
use phpbb\language\language;
|
use phpbb\language\language;
|
||||||
use phpbb\log\log;
|
use phpbb\log\log;
|
||||||
|
@ -29,9 +28,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
|
|
||||||
class delete extends command
|
class delete extends command
|
||||||
{
|
{
|
||||||
/** @var config */
|
|
||||||
protected $config;
|
|
||||||
|
|
||||||
/** @var language */
|
/** @var language */
|
||||||
protected $language;
|
protected $language;
|
||||||
|
|
||||||
|
@ -50,7 +46,6 @@ class delete extends command
|
||||||
/**
|
/**
|
||||||
* Construct method
|
* Construct method
|
||||||
*
|
*
|
||||||
* @param config $config
|
|
||||||
* @param language $language
|
* @param language $language
|
||||||
* @param log $log
|
* @param log $log
|
||||||
* @param post_helper $post_helper
|
* @param post_helper $post_helper
|
||||||
|
@ -58,9 +53,8 @@ class delete extends command
|
||||||
* @param state_helper $state_helper
|
* @param state_helper $state_helper
|
||||||
* @param user $user
|
* @param user $user
|
||||||
*/
|
*/
|
||||||
public function __construct(config $config, language $language, log $log, post_helper $post_helper, search_backend_factory $search_backend_factory, state_helper $state_helper, user $user)
|
public function __construct(language $language, log $log, post_helper $post_helper, search_backend_factory $search_backend_factory, state_helper $state_helper, user $user)
|
||||||
{
|
{
|
||||||
$this->config = $config;
|
|
||||||
$this->language = $language;
|
$this->language = $language;
|
||||||
$this->log = $log;
|
$this->log = $log;
|
||||||
$this->post_helper = $post_helper;
|
$this->post_helper = $post_helper;
|
||||||
|
|
|
@ -81,7 +81,7 @@ class list_all extends command
|
||||||
foreach ($this->search_backend_collection as $search_backend)
|
foreach ($this->search_backend_collection as $search_backend)
|
||||||
{
|
{
|
||||||
$name = $search_backend->get_type();
|
$name = $search_backend->get_type();
|
||||||
$active = ($name === $this->config['search_type']) ? '(<comment>' . $this->language->lang('ACTIVE') . '</comment>) ' : '';
|
$active = ($name === $this->config['search_type']) ? '(<comment>' . $this->language->lang('$') . '</comment>) ' : '';
|
||||||
$search_backends[] = '<info>' . $name . '</info> ' . $active . $search_backend->get_name();
|
$search_backends[] = '<info>' . $name . '</info> ' . $active . $search_backend->get_name();
|
||||||
|
|
||||||
if ($name === $this->config['search_type'] && !$search_backend->index_created())
|
if ($name === $this->config['search_type'] && !$search_backend->index_created())
|
||||||
|
|
|
@ -14,7 +14,6 @@ class create_test extends base
|
||||||
{
|
{
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
$application->add(new create(
|
$application->add(new create(
|
||||||
$this->config,
|
|
||||||
$this->language,
|
$this->language,
|
||||||
$this->log,
|
$this->log,
|
||||||
$this->post_helper,
|
$this->post_helper,
|
||||||
|
|
|
@ -14,7 +14,6 @@ class delete_test extends base
|
||||||
{
|
{
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
$application->add(new delete(
|
$application->add(new delete(
|
||||||
$this->config,
|
|
||||||
$this->language,
|
$this->language,
|
||||||
$this->log,
|
$this->log,
|
||||||
$this->post_helper,
|
$this->post_helper,
|
||||||
|
|
Loading…
Add table
Reference in a new issue