diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-16 12:02:35 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-16 12:02:35 +0100 |
| commit | 1f78114b1196d8aa3f6decd30318bc725076dc6e (patch) | |
| tree | 47f0055d46405441426d9fd6a3645a515270764b | |
| parent | a804d843c8608bcf2dbaa903db01c8b747978526 (diff) | |
| download | kernel-1f78114b1196d8aa3f6decd30318bc725076dc6e.tar.gz kernel-1f78114b1196d8aa3f6decd30318bc725076dc6e.tar.bz2 kernel-1f78114b1196d8aa3f6decd30318bc725076dc6e.zip | |
PHP8.4 tidies and restore missing defaults
| -rwxr-xr-x | includes/classes/BitBase.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/classes/BitBase.php b/includes/classes/BitBase.php index 53dae03..243ffdf 100755 --- a/includes/classes/BitBase.php +++ b/includes/classes/BitBase.php @@ -192,7 +192,7 @@ abstract class BitBase { /** * storeInCache * - * @param string $pCacheKey unique identifier for object in cache store + * @param string // $pCacheKey unique identifier for object in cache store * @access public * @return bool true on success, false on failure */ @@ -364,7 +364,7 @@ abstract class BitBase { /** * verifyIdParamter Determines if any given variable exists and is a number * - * @param mixed $pId this can be a string, number or array. if it's an array, all values in the array will be checked to see if they are numeric + * @param mixed $pKey this can be a string, number or array. if it's an array, all values in the array will be checked to see if they are numeric * @access public * @return bool true if the input was numeric, false if it wasn't */ @@ -399,8 +399,8 @@ abstract class BitBase { * getParameter Gets a hash value it exists, or returns an optional default * * @param array $pParamHash Hash of key=>value pairs - * @param string $pHashKey Key used to search for value - * @param string $pDefault Default value to return if not found. null if nothing is passed in. + * @param string $pKey Key used to search for value + * @param string $pDefaultValue Default value to return if not found. null if nothing is passed in. * @return array|string|null */ public static function getParameter( array $pParamHash, string $pKey, ?string $pDefaultValue = null ): array|string|null { @@ -411,8 +411,8 @@ abstract class BitBase { * getIdParameter Gets an in-bounds, integer hash value it exists, or returns an optional default * * @param array $pParamHash Hash of key=>value pairs - * @param string $pHashKey Key used to search for value - * @param string $pDefault Default value to return if not found. null if nothing is passed in. + * @param string $pKey Key used to search for value + * @param string $pDefaultValue Default value to return if not found. null if nothing is passed in. * @return bool true if the input was numeric, false if it wasn't */ public static function getIdParameter( array &$pParamHash, string $pKey, ?string $pDefaultValue = null ) { @@ -568,7 +568,7 @@ abstract class BitBase { */ public static function postGetList( array &$pListHash ): void { global $gBitSystem; - $pListHash['listInfo']['page_records'] = /* !empty( $pListHash['page_records'] ? $pListHash['page_records'] : */ $pListHash['max_records']; + $pListHash['listInfo']['page_records'] = !empty( $pListHash['page_records']) ? $pListHash['page_records'] : $pListHash['max_records']; if( !isset( $pListHash['cant'] ) ) { $pListHash['cant'] = $pListHash['max_records']; } |
