Passed
Pull Request — master (#3834)
by Shinji
21:30
created
src/PhpSpreadsheet/Calculation/Financial/Helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @return int|string Result, or a string containing an error
26 26
      */
27
-    public static function daysPerYear($year, $basis = 0): string|int
27
+    public static function daysPerYear($year, $basis = 0): string | int
28 28
     {
29 29
         if (!is_numeric($basis)) {
30 30
             return ExcelError::NAN();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/CashFlow/Variable/NonPeriodic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         return '';
183 183
     }
184 184
 
185
-    private static function xirrPart3(array $values, array $dates, float $x1, float $x2): float|string
185
+    private static function xirrPart3(array $values, array $dates, float $x1, float $x2): float | string
186 186
     {
187 187
         $f = self::xnpvOrdered($x1, $values, $dates, false);
188 188
         if ($f < 0.0) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         return $rslt;
212 212
     }
213 213
 
214
-    private static function xirrBisection(array $values, array $dates, float $x1, float $x2): string|float
214
+    private static function xirrBisection(array $values, array $dates, float $x1, float $x2): string | float
215 215
     {
216 216
         $rslt = ExcelError::NAN();
217 217
         for ($i = 0; $i < self::FINANCIAL_MAX_ITERATIONS; ++$i) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Standardize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
27 27
      *            with the same dimensions
28 28
      */
29
-    public static function execute($value, $mean, $stdDev): array|string|float
29
+    public static function execute($value, $mean, $stdDev): array | string | float
30 30
     {
31 31
         if (is_array($value) || is_array($mean) || is_array($stdDev)) {
32 32
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $stdDev);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Conditional.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      * @param mixed[] $range Data values
84 84
      * @param string $condition the criteria that defines which cells will be counted
85 85
      */
86
-    public static function COUNTIF($range, $condition): string|int
86
+    public static function COUNTIF($range, $condition): string | int
87 87
     {
88 88
         // Filter out any empty values that shouldn't be included in a COUNT
89 89
         $range = array_filter(
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/NewtonRaphson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     }
19 19
 
20 20
     /** @return float|string */
21
-    public function execute(float $probability): string|int|float
21
+    public function execute(float $probability): string | int | float
22 22
     {
23 23
         $xLo = 100;
24 24
         $xHi = 0;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DProduct.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      *                                        the column label in which you specify a condition for the
31 31
      *                                        column.
32 32
      */
33
-    public static function evaluate($database, $field, $criteria): string|float
33
+    public static function evaluate($database, $field, $criteria): string | float
34 34
     {
35 35
         $field = self::fieldExtract($database, $field);
36 36
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DAverage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @return float|string
34 34
      */
35
-    public static function evaluate($database, $field, $criteria): string|int|float
35
+    public static function evaluate($database, $field, $criteria): string | int | float
36 36
     {
37 37
         $field = self::fieldExtract($database, $field);
38 38
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DVarP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @return float|string (string if result is an error)
35 35
      */
36
-    public static function evaluate($database, $field, $criteria): string|float
36
+    public static function evaluate($database, $field, $criteria): string | float
37 37
     {
38 38
         $field = self::fieldExtract($database, $field);
39 39
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xlsx.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -705,7 +705,7 @@
 block discarded – undo
705 705
         }
706 706
     }
707 707
 
708
-    private function processDrawing(WorksheetDrawing $drawing): string|null|false
708
+    private function processDrawing(WorksheetDrawing $drawing): string | null | false
709 709
     {
710 710
         $data = null;
711 711
         $filename = $drawing->getPath();
Please login to merge, or discard this patch.