From 63284c51597fcc062fc558d421dfed6a899ed536 Mon Sep 17 00:00:00 2001 From: dingyongliang Date: Thu, 18 May 2023 11:03:16 +0800 Subject: [PATCH] * add returnType for getPageCSS and getPageJS. --- lib/zin/wg/dtable/v1.php | 2 +- lib/zin/wg/programmenu/v1.php | 2 +- lib/zin/wg/searchtoggle/v1.php | 4 ++-- lib/zin/wg/sidebar/v1.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/zin/wg/dtable/v1.php b/lib/zin/wg/dtable/v1.php index 05058f1372..e60c31e0ac 100644 --- a/lib/zin/wg/dtable/v1.php +++ b/lib/zin/wg/dtable/v1.php @@ -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'); } diff --git a/lib/zin/wg/programmenu/v1.php b/lib/zin/wg/programmenu/v1.php index 22463b0a1f..e66774fc79 100644 --- a/lib/zin/wg/programmenu/v1.php +++ b/lib/zin/wg/programmenu/v1.php @@ -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'); } diff --git a/lib/zin/wg/searchtoggle/v1.php b/lib/zin/wg/searchtoggle/v1.php index 024a04a308..017d39dfbe 100644 --- a/lib/zin/wg/searchtoggle/v1.php +++ b/lib/zin/wg/searchtoggle/v1.php @@ -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'); } diff --git a/lib/zin/wg/sidebar/v1.php b/lib/zin/wg/sidebar/v1.php index b8fec980be..f6354d3cab 100644 --- a/lib/zin/wg/sidebar/v1.php +++ b/lib/zin/wg/sidebar/v1.php @@ -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'); }