Passed
Pull Request — master (#3718)
by Adrien
12:54
created
Category
src/PhpSpreadsheet/Shared/Trend/BestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@
 block discarded – undo
430 430
     {
431 431
         return array_sum(
432 432
             array_map(
433
-                function ($value): float|int {
433
+                function ($value): float | int {
434 434
                     return $value ** 2;
435 435
                 },
436 436
                 $values
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      *
65 65
      * @return float X-Value
66 66
      */
67
-    public function getValueOfXForY($yValue): int|float
67
+    public function getValueOfXForY($yValue): int | float
68 68
     {
69 69
         return ($yValue - $this->getIntersect()) / $this->getSlope();
70 70
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return float Y-Value
21 21
      */
22
-    public function getValueOfYForX($xValue): int|float
22
+    public function getValueOfYForX($xValue): int | float
23 23
     {
24 24
         return $this->getIntersect() + $this->getSlope() * $xValue;
25 25
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return float X-Value
33 33
      */
34
-    public function getValueOfXForY($yValue): int|float
34
+    public function getValueOfXForY($yValue): int | float
35 35
     {
36 36
         return ($yValue - $this->getIntersect()) / $this->getSlope();
37 37
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DVar.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.