Completed
Push — master ( 85a9a3...6b2767 )
by
unknown
36s queued 24s
created
src/PhpSpreadsheet/Calculation/LookupRef/Indirect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @param null|mixed[]|string $cellAddress
39 39
      */
40
-    private static function validateAddress(array|string|null $cellAddress): string
40
+    private static function validateAddress(array | string | null $cellAddress): string
41 41
     {
42 42
         $cellAddress = Functions::flattenSingleValue($cellAddress);
43 43
         if (!is_string($cellAddress) || !$cellAddress) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @return mixed[]|string An array containing a cell or range of cells, or a string on error
65 65
      */
66
-    public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string|array
66
+    public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string | array
67 67
     {
68 68
         [$baseCol, $baseRow] = Coordinate::indexesFromString($cell->getCoordinate());
69 69
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef/Address.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @return mixed[]|string If an array of values is passed as the $testValue argument, then the returned result will also be
49 49
      *            an array with the same dimensions
50 50
      */
51
-    public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array|string
51
+    public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array | string
52 52
     {
53 53
         if (
54 54
             is_array($row) || is_array($column)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engine/FormattedNumber.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @param float|string $operand string value to test
24 24
      */
25
-    public static function convertToNumberIfFormatted(float|string &$operand): bool
25
+    public static function convertToNumberIfFormatted(float | string &$operand): bool
26 26
     {
27 27
         return self::convertToNumberIfNumeric($operand)
28 28
             || self::convertToNumberIfFraction($operand)
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @param float|string $operand string value to test
38 38
      */
39
-    public static function convertToNumberIfNumeric(float|string &$operand): bool
39
+    public static function convertToNumberIfNumeric(float | string &$operand): bool
40 40
     {
41 41
         $thousandsSeparator = preg_quote(StringHelper::getThousandsSeparator(), '/');
42 42
         $value = preg_replace(['/(\d)' . $thousandsSeparator . '(\d)/u', '/([+-])\s+(\d)/u'], ['$1$2', '$1$2'], trim("$operand"));
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param string $operand string value to test
60 60
      */
61
-    public static function convertToNumberIfFraction(float|string &$operand): bool
61
+    public static function convertToNumberIfFraction(float | string &$operand): bool
62 62
     {
63 63
         if (is_string($operand) && preg_match(self::STRING_REGEXP_FRACTION, $operand, $match)) {
64 64
             $sign = ($match[1] === '-') ? '-' : '+';
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @param float|string $operand string value to test
82 82
      */
83
-    public static function convertToNumberIfPercent(float|string &$operand): bool
83
+    public static function convertToNumberIfPercent(float | string &$operand): bool
84 84
     {
85 85
         $thousandsSeparator = preg_quote(StringHelper::getThousandsSeparator(), '/');
86 86
         $value = preg_replace('/(\d)' . $thousandsSeparator . '(\d)/u', '$1$2', trim("$operand"));
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *
106 106
      * @param float|string $operand string value to test
107 107
      */
108
-    public static function convertToNumberIfCurrency(float|string &$operand): bool
108
+    public static function convertToNumberIfCurrency(float | string &$operand): bool
109 109
     {
110 110
         $currencyRegexp = self::currencyMatcherRegexp();
111 111
         $thousandsSeparator = preg_quote(StringHelper::getThousandsSeparator(), '/');
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Logical/Operations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *         If an array of values is passed as an argument, then the returned result will also be an array
111 111
      *            with the same dimensions
112 112
      */
113
-    public static function NOT(mixed $logical = false): array|bool|string
113
+    public static function NOT(mixed $logical = false): array | bool | string
114 114
     {
115 115
         if (is_array($logical)) {
116 116
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param mixed[] $args
135 135
      * @param callable(int, int): bool $func
136 136
      */
137
-    private static function countTrueValues(array $args, callable $func): bool|string
137
+    private static function countTrueValues(array $args, callable $func): bool | string
138 138
     {
139 139
         $trueValueCount = 0;
140 140
         $count = 0;
Please login to merge, or discard this patch.