mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16748] Enable code sniffing for static placement and adjust code
PHPBB3-16748
This commit is contained in:
@@ -278,7 +278,7 @@ class add_bots extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -109,7 +109,7 @@ class add_languages extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -547,7 +547,7 @@ class add_modules extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -180,7 +180,7 @@ class create_search_index extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -136,7 +136,7 @@ class setup_languages extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -218,7 +218,7 @@ class add_config_settings extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -173,7 +173,7 @@ class add_default_data extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -129,7 +129,7 @@ class add_tables extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -157,7 +157,7 @@ class create_schema_file extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -121,7 +121,7 @@ class set_up_database extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -171,7 +171,7 @@ class update_user_and_post_data extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count() : int
|
||||
public static function get_step_count() : int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -228,7 +228,7 @@ class create_config_file extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -175,7 +175,7 @@ class install_extensions extends database_task
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -151,7 +151,7 @@ class notify_user extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -78,7 +78,7 @@ class populate_migrations extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -203,7 +203,7 @@ class obtain_admin_data extends \phpbb\install\task_base implements \phpbb\insta
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -170,7 +170,7 @@ class obtain_board_data extends \phpbb\install\task_base implements \phpbb\insta
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -255,7 +255,7 @@ class obtain_database_data extends \phpbb\install\task_base implements \phpbb\in
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -158,7 +158,7 @@ class obtain_email_data extends \phpbb\install\task_base implements \phpbb\insta
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -154,7 +154,7 @@ class obtain_file_updater_method extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -187,7 +187,7 @@ class obtain_server_data extends \phpbb\install\task_base implements \phpbb\inst
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -98,7 +98,7 @@ class obtain_update_files extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -148,7 +148,7 @@ class obtain_update_ftp_data extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -110,7 +110,7 @@ class obtain_update_settings extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -264,7 +264,7 @@ class check_filesystem extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -211,7 +211,7 @@ class check_server_environment extends \phpbb\install\task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -183,7 +183,7 @@ class check_update extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -219,7 +219,7 @@ class update extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -75,7 +75,7 @@ class update_extensions extends task_base
|
||||
* @var array List of default extensions to update, grouped by version
|
||||
* they were added
|
||||
*/
|
||||
static public $default_extensions_update = [
|
||||
public static $default_extensions_update = [
|
||||
'3.2.0-RC2' => ['phpbb/viglink']
|
||||
];
|
||||
|
||||
@@ -222,7 +222,7 @@ class update_extensions extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -238,7 +238,7 @@ class diff_files extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -118,7 +118,7 @@ class download_updated_files extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -233,7 +233,7 @@ class file_check extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -155,7 +155,7 @@ class show_file_status extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -272,7 +272,7 @@ class update_files extends task_base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
static public function get_step_count()
|
||||
public static function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user