Skip to content

Commit c988612

Browse files
author
MarkBaker
committed
Style and phpstan cleanups
1 parent 8818a7d commit c988612

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/PhpSpreadsheet/Calculation/Financial/Dollar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function decimal($fractionalDollar = null, $fraction = 0)
6868
return Functions::DIV0();
6969
}
7070

71-
$dollars = ($fractionalDollar < 0) ? ceil($fractionalDollar): floor($fractionalDollar);
71+
$dollars = ($fractionalDollar < 0) ? ceil($fractionalDollar) : floor($fractionalDollar);
7272
$cents = fmod($fractionalDollar, 1.0);
7373
$cents /= $fraction;
7474
$cents *= 10 ** ceil(log10($fraction));

src/PhpSpreadsheet/Calculation/TextData.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TextData
1818
*
1919
* @param string $character Value
2020
*
21-
* @return string
21+
* @return array|string
2222
*/
2323
public static function CHARACTER($character)
2424
{
@@ -64,9 +64,9 @@ public static function TRIMSPACES($stringValue = '')
6464
*
6565
* @see Use the code() method in the TextData\CharacterConvert class instead
6666
*
67-
* @param string $characters Value
67+
* @param array|string $characters Value
6868
*
69-
* @return int|string A string if arguments are invalid
69+
* @return array|int|string A string if arguments are invalid
7070
*/
7171
public static function ASCIICODE($characters)
7272
{
@@ -234,15 +234,15 @@ public static function STRINGLENGTH($value = '')
234234
/**
235235
* LOWERCASE.
236236
*
237-
* Converts a string value to upper case.
237+
* Converts a string value to lower case.
238238
*
239239
* @Deprecated 1.18.0
240240
*
241241
* @see Use the lower() method in the TextData\CaseConvert class instead
242242
*
243-
* @param string $mixedCaseString
243+
* @param array|string $mixedCaseString
244244
*
245-
* @return string
245+
* @return array|string
246246
*/
247247
public static function LOWERCASE($mixedCaseString)
248248
{
@@ -260,7 +260,7 @@ public static function LOWERCASE($mixedCaseString)
260260
*
261261
* @param string $mixedCaseString
262262
*
263-
* @return string
263+
* @return array|string
264264
*/
265265
public static function UPPERCASE($mixedCaseString)
266266
{
@@ -270,15 +270,15 @@ public static function UPPERCASE($mixedCaseString)
270270
/**
271271
* PROPERCASE.
272272
*
273-
* Converts a string value to upper case.
273+
* Converts a string value to proper/title case.
274274
*
275275
* @Deprecated 1.18.0
276276
*
277277
* @see Use the proper() method in the TextData\CaseConvert class instead
278278
*
279-
* @param string $mixedCaseString
279+
* @param array|string $mixedCaseString
280280
*
281-
* @return string
281+
* @return array|string
282282
*/
283283
public static function PROPERCASE($mixedCaseString)
284284
{

tests/PhpSpreadsheetTests/Calculation/Functions/Financial/DollarDeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function providerDOLLARDE(): array
2929
{
3030
return require 'tests/data/Calculation/Financial/DOLLARDE.php';
3131
}
32-
32+
3333
/**
3434
* @dataProvider providerDollarDeArray
3535
*/

tests/PhpSpreadsheetTests/Calculation/Functions/TextData/CodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function providerCODE(): array
3030
{
3131
return require 'tests/data/Calculation/TextData/CODE.php';
3232
}
33-
33+
3434
/**
3535
* @dataProvider providerCodeArray
3636
*/

0 commit comments

Comments
 (0)