* add returnType for getPageCSS and getPageJS.
This commit is contained in:
@@ -16,7 +16,7 @@ class dtable extends wg
|
||||
static::$dtableID++;
|
||||
}
|
||||
|
||||
public static function getPageCSS()
|
||||
public static function getPageCSS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ class programMenu extends wg
|
||||
'closeLink?:string'
|
||||
);
|
||||
|
||||
public static function getPageCSS()
|
||||
public static function getPageCSS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
|
||||
}
|
||||
|
||||
@@ -5,12 +5,12 @@ class searchToggle extends wg
|
||||
{
|
||||
protected static $defineProps = 'open?:bool';
|
||||
|
||||
public static function getPageCSS()
|
||||
public static function getPageCSS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
|
||||
}
|
||||
|
||||
public static function getPageJS()
|
||||
public static function getPageJS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
|
||||
}
|
||||
|
||||
@@ -8,12 +8,12 @@ class sidebar extends wg
|
||||
'showToggle?:bool=true'
|
||||
);
|
||||
|
||||
public static function getPageCSS()
|
||||
public static function getPageCSS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
|
||||
}
|
||||
|
||||
public static function getPageJS()
|
||||
public static function getPageJS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user