Style and phpstan cleanups
This commit is contained in:
parent
8818a7d620
commit
c9886127c0
|
|
@ -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));
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue