1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12683] Code review

PHPBB3-12683
This commit is contained in:
Ruben Calvo
2021-11-30 00:04:46 +01:00
parent 2e917b6059
commit 23ce5121a4
11 changed files with 41 additions and 35 deletions

View File

@@ -93,19 +93,13 @@ class fulltext_native extends base implements search_backend_interface
*/
protected $phpbb_dispatcher;
/**
* @var language
*/
/** @var language */
protected $language;
/**
* @var string
*/
/** @var string */
protected $search_wordlist_table;
/**
* @var string
*/
/** @var string */
protected $search_wordmatch_table;
/**

View File

@@ -44,7 +44,7 @@ class state_helper
}
/**
* Returns if there is an action in progress
* Returns whether there is an action in progress
*
* @return bool
*/
@@ -101,7 +101,7 @@ class state_helper
*/
public function init(string $search_type, string $action): void
{
// Is not possible to start a new process when there is one already running
// It's not possible to start a new process when there is one already running
if ($this->is_action_in_progress())
{
throw new action_in_progress_exception();
@@ -158,7 +158,7 @@ class state_helper
*/
private function load_state(): array
{
// Is not possible to execute an action over state if is empty
// Is not possible to execute an action over state if it's empty
if (!$this->is_action_in_progress())
{
throw new no_action_in_progress_exception();