Failed Conditions
Pull Request — master (#3873)
by Adrien
13:56
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/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/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.
src/PhpSpreadsheet/Reader/Xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      *
111 111
      * @return false|SimpleXMLElement
112 112
      */
113
-    public function trySimpleXMLLoadString(string $filename): SimpleXMLElement|bool
113
+    public function trySimpleXMLLoadString(string $filename): SimpleXMLElement | bool
114 114
     {
115 115
         try {
116 116
             $xml = simplexml_load_string(
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/ExactFontTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         'be189a7e2711cdf2a7f6275c60cbc7e2',
53 53
     ];
54 54
 
55
-    private float|int|null $paddingAmountExact;
55
+    private float | int | null $paddingAmountExact;
56 56
 
57 57
     protected function setUp(): void
58 58
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Lcm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      *
50 50
      * @return int|string Lowest Common Multiplier, or a string containing an error
51 51
      */
52
-    public static function evaluate(mixed ...$args): int|string
52
+    public static function evaluate(mixed ...$args): int | string
53 53
     {
54 54
         try {
55 55
             $arrayArgs = [];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Absolute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
21 21
      *            with the same dimensions
22 22
      */
23
-    public static function evaluate(mixed $number): array|string|int|float
23
+    public static function evaluate(mixed $number): array | string | int | float
24 24
     {
25 25
         if (is_array($number)) {
26 26
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Ceiling.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
71 71
      *            with the same dimensions
72 72
      */
73
-    public static function math(mixed $number, mixed $significance = null, $mode = 0): array|string|float
73
+    public static function math(mixed $number, mixed $significance = null, $mode = 0): array | string | float
74 74
     {
75 75
         if (is_array($number) || is_array($significance) || is_array($mode)) {
76 76
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $significance, $mode);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
112 112
      *            with the same dimensions
113 113
      */
114
-    public static function precise(mixed $number, $significance = 1): array|string|float
114
+    public static function precise(mixed $number, $significance = 1): array | string | float
115 115
     {
116 116
         if (is_array($number) || is_array($significance)) {
117 117
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $significance);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Avoid Scrutinizer problems concerning complexity.
145 145
      */
146
-    private static function argumentsOk(float $number, float $significance): float|string
146
+    private static function argumentsOk(float $number, float $significance): float | string
147 147
     {
148 148
         if (empty($number * $significance)) {
149 149
             return 0.0;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Angle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
21 21
      *            with the same dimensions
22 22
      */
23
-    public static function toDegrees(mixed $number): array|string|float
23
+    public static function toDegrees(mixed $number): array | string | float
24 24
     {
25 25
         if (is_array($number)) {
26 26
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
47 47
      *            with the same dimensions
48 48
      */
49
-    public static function toRadians(mixed $number): array|string|float
49
+    public static function toRadians(mixed $number): array | string | float
50 50
     {
51 51
         if (is_array($number)) {
52 52
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.