Style and phpstan cleanups

This commit is contained in:
MarkBaker 2022-02-11 13:55:52 +01:00
parent 8818a7d620
commit c9886127c0
4 changed files with 13 additions and 13 deletions

View File

@ -68,7 +68,7 @@ class Dollar
return Functions::DIV0(); return Functions::DIV0();
} }
$dollars = ($fractionalDollar < 0) ? ceil($fractionalDollar): floor($fractionalDollar); $dollars = ($fractionalDollar < 0) ? ceil($fractionalDollar) : floor($fractionalDollar);
$cents = fmod($fractionalDollar, 1.0); $cents = fmod($fractionalDollar, 1.0);
$cents /= $fraction; $cents /= $fraction;
$cents *= 10 ** ceil(log10($fraction)); $cents *= 10 ** ceil(log10($fraction));

View File

@ -18,7 +18,7 @@ class TextData
* *
* @param string $character Value * @param string $character Value
* *
* @return string * @return array|string
*/ */
public static function CHARACTER($character) public static function CHARACTER($character)
{ {
@ -64,9 +64,9 @@ class TextData
* *
* @see Use the code() method in the TextData\CharacterConvert class instead * @see Use the code() method in the TextData\CharacterConvert class instead
* *
* @param string $characters Value * @param array|string $characters Value
* *
* @return int|string A string if arguments are invalid * @return array|int|string A string if arguments are invalid
*/ */
public static function ASCIICODE($characters) public static function ASCIICODE($characters)
{ {
@ -234,15 +234,15 @@ class TextData
/** /**
* LOWERCASE. * LOWERCASE.
* *
* Converts a string value to upper case. * Converts a string value to lower case.
* *
* @Deprecated 1.18.0 * @Deprecated 1.18.0
* *
* @see Use the lower() method in the TextData\CaseConvert class instead * @see Use the lower() method in the TextData\CaseConvert class instead
* *
* @param string $mixedCaseString * @param array|string $mixedCaseString
* *
* @return string * @return array|string
*/ */
public static function LOWERCASE($mixedCaseString) public static function LOWERCASE($mixedCaseString)
{ {
@ -260,7 +260,7 @@ class TextData
* *
* @param string $mixedCaseString * @param string $mixedCaseString
* *
* @return string * @return array|string
*/ */
public static function UPPERCASE($mixedCaseString) public static function UPPERCASE($mixedCaseString)
{ {
@ -270,15 +270,15 @@ class TextData
/** /**
* PROPERCASE. * PROPERCASE.
* *
* Converts a string value to upper case. * Converts a string value to proper/title case.
* *
* @Deprecated 1.18.0 * @Deprecated 1.18.0
* *
* @see Use the proper() method in the TextData\CaseConvert class instead * @see Use the proper() method in the TextData\CaseConvert class instead
* *
* @param string $mixedCaseString * @param array|string $mixedCaseString
* *
* @return string * @return array|string
*/ */
public static function PROPERCASE($mixedCaseString) public static function PROPERCASE($mixedCaseString)
{ {

View File

@ -29,7 +29,7 @@ class DollarDeTest extends TestCase
{ {
return require 'tests/data/Calculation/Financial/DOLLARDE.php'; return require 'tests/data/Calculation/Financial/DOLLARDE.php';
} }
/** /**
* @dataProvider providerDollarDeArray * @dataProvider providerDollarDeArray
*/ */

View File

@ -30,7 +30,7 @@ class CodeTest extends AllSetupTeardown
{ {
return require 'tests/data/Calculation/TextData/CODE.php'; return require 'tests/data/Calculation/TextData/CODE.php';
} }
/** /**
* @dataProvider providerCodeArray * @dataProvider providerCodeArray
*/ */