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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user