* add returnType for getPageCSS and getPageJS.

This commit is contained in:
dingyongliang
2023-05-18 11:03:24 +08:00
parent 4beb0d0847
commit 63284c5159
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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');
}
+1 -1
View File
@@ -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');
}
+2 -2
View File
@@ -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');
}
+2 -2
View File
@@ -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');
}