1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +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

@@ -32,7 +32,7 @@ class datetime extends \DateTime
/**
* @var array Date formats are preprocessed by phpBB, to save constant recalculation they are cached.
*/
static protected $format_cache = array();
protected static $format_cache = array();
/**
* Constructs a new instance of \phpbb\datetime, expanded to include an argument to inject
@@ -143,7 +143,7 @@ class datetime extends \DateTime
* @param user $user User object to use for localisation
* @return array Processed date format
*/
static protected function format_cache($format, $user)
protected static function format_cache($format, $user)
{
$lang = $user->lang_name;