mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/16748] Enable code sniffing for static placement and adjust code
PHPBB3-16748
This commit is contained in:
@@ -29,7 +29,7 @@ class sanitizer
|
||||
*
|
||||
* @return array Sanitized data
|
||||
*/
|
||||
static public function sanitize(array $data) : array
|
||||
public static function sanitize(array $data) : array
|
||||
{
|
||||
if (!empty($data))
|
||||
{
|
||||
@@ -51,7 +51,7 @@ class sanitizer
|
||||
*
|
||||
* @return array Data array
|
||||
*/
|
||||
static public function decode(string $json) : array
|
||||
public static function decode(string $json) : array
|
||||
{
|
||||
$data = json_decode($json, true);
|
||||
return !empty($data) ? self::sanitize($data) : [];
|
||||
|
Reference in New Issue
Block a user