mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-15 21:24:03 +02:00
[ticket/16748] Enable code sniffing for static placement and adjust code
PHPBB3-16748
This commit is contained in:
@@ -312,7 +312,7 @@ class filespec
|
||||
*
|
||||
* @return string Extension of the supplied filename
|
||||
*/
|
||||
static public function get_extension($filename)
|
||||
public static function get_extension($filename)
|
||||
{
|
||||
$filename = utf8_basename($filename);
|
||||
|
||||
|
@@ -296,7 +296,7 @@ class filespec_storage
|
||||
*
|
||||
* @return string Extension of the supplied filename
|
||||
*/
|
||||
static public function get_extension($filename)
|
||||
public static function get_extension($filename)
|
||||
{
|
||||
$filename = utf8_basename($filename);
|
||||
|
||||
|
@@ -354,7 +354,7 @@ class upload
|
||||
*
|
||||
* @return array Array containing the image types and their extensions
|
||||
*/
|
||||
static public function image_types()
|
||||
public static function image_types()
|
||||
{
|
||||
$result = [
|
||||
IMAGETYPE_GIF => ['gif'],
|
||||
|
Reference in New Issue
Block a user