1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-25 02:51:35 +02:00

[ticket/16748] Enable code sniffing for static placement and adjust code

PHPBB3-16748
This commit is contained in:
Marc Alexander
2021-04-03 23:12:04 +02:00
parent 8518393c46
commit ce08da5165
387 changed files with 459 additions and 459 deletions

View File

@@ -164,7 +164,7 @@ class compress
*
* @return array Array of strings of available compression methods (.tar, .tar.gz, .zip, etc.)
*/
static public function methods()
public static function methods()
{
$methods = array('.tar');
$available_methods = array('.tar.gz' => 'zlib', '.tar.bz2' => 'bz2', '.zip' => 'zlib');

View File

@@ -101,7 +101,7 @@ class jabber
/**
* Able to use the SSL functionality?
*/
static public function can_use_ssl()
public static function can_use_ssl()
{
return @extension_loaded('openssl');
}
@@ -109,7 +109,7 @@ class jabber
/**
* Able to use TLS?
*/
static public function can_use_tls()
public static function can_use_tls()
{
if (!@extension_loaded('openssl') || !function_exists('stream_socket_enable_crypto') || !function_exists('stream_get_meta_data') || !function_exists('stream_set_blocking') || !function_exists('stream_get_wrappers'))
{

View File

@@ -237,7 +237,7 @@ class transfer
/**
* Determine methods able to be used
*/
static public function methods()
public static function methods()
{
$methods = array();
$disabled_functions = explode(',', @ini_get('disable_functions'));
@@ -289,7 +289,7 @@ class ftp extends transfer
/**
* Requests data
*/
static public function data()
public static function data()
{
global $user;
@@ -537,7 +537,7 @@ class ftp_fsock extends transfer
/**
* Requests data
*/
static public function data()
public static function data()
{
global $user;

View File

@@ -689,7 +689,7 @@ class mcp_queue
* @param $mode string Active module
* @return null
*/
static public function approve_posts($action, $post_id_list, $id, $mode)
public static function approve_posts($action, $post_id_list, $id, $mode)
{
global $template, $user, $request, $phpbb_container, $phpbb_dispatcher;
global $phpEx, $phpbb_root_path, $phpbb_log;
@@ -945,7 +945,7 @@ class mcp_queue
* @param $mode string Active module
* @return null
*/
static public function approve_topics($action, $topic_id_list, $id, $mode)
public static function approve_topics($action, $topic_id_list, $id, $mode)
{
global $db, $template, $user, $phpbb_log;
global $phpEx, $phpbb_root_path, $request, $phpbb_container, $phpbb_dispatcher;
@@ -1143,7 +1143,7 @@ class mcp_queue
* @param $mode string Active module
* @return null
*/
static public function disapprove_posts($post_id_list, $id, $mode)
public static function disapprove_posts($post_id_list, $id, $mode)
{
global $db, $template, $user, $phpbb_container, $phpbb_dispatcher;
global $phpEx, $phpbb_root_path, $request, $phpbb_log;