Passed
Pull Request — master (#3718)
by Adrien
19:29 queued 04:31
created
Category
src/PhpSpreadsheet/Calculation/Statistical/Trends.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @return array|string The result, or a string containing an error
214 214
      */
215
-    public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array
215
+    public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array
216 216
     {
217 217
         $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const);
218 218
         $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats);
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      *
274 274
      * @return array|string The result, or a string containing an error
275 275
      */
276
-    public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array
276
+    public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array
277 277
     {
278 278
         $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const);
279 279
         $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/LogNormal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      *            accuracy if I can get my head round the mathematics
115 115
      *            (as described at) http://home.online.no/~pjacklam/notes/invnorm/
116 116
      */
117
-    public static function inverse($probability, $mean, $stdDev): array|string|float
117
+    public static function inverse($probability, $mean, $stdDev): array | string | float
118 118
     {
119 119
         if (is_array($probability) || is_array($mean) || is_array($stdDev)) {
120 120
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $mean, $stdDev);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Gamma.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
23 23
      *            with the same dimensions
24 24
      */
25
-    public static function gamma($value): array|string|float
25
+    public static function gamma($value): array | string | float
26 26
     {
27 27
         if (is_array($value)) {
28 28
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
131 131
      *            with the same dimensions
132 132
      */
133
-    public static function ln($value): array|string|float
133
+    public static function ln($value): array | string | float
134 134
     {
135 135
         if (is_array($value)) {
136 136
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DCountA.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|int
33
+    public static function evaluate($database, $field, $criteria): string | int
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/DCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate($database, $field, $criteria, bool $returnError = true): string|int
34
+    public static function evaluate($database, $field, $criteria, bool $returnError = true): string | int
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($returnError && $field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertDecimal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
46 46
      *            with the same dimensions
47 47
      */
48
-    public static function toBinary($value, $places = null): array|string
48
+    public static function toBinary($value, $places = null): array | string
49 49
     {
50 50
         if (is_array($value) || is_array($places)) {
51 51
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
103 103
      *            with the same dimensions
104 104
      */
105
-    public static function toHex($value, $places = null): array|string
105
+    public static function toHex($value, $places = null): array | string
106 106
     {
107 107
         if (is_array($value) || is_array($places)) {
108 108
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
179 179
      *            with the same dimensions
180 180
      */
181
-    public static function toOctal($value, $places = null): array|string
181
+    public static function toOctal($value, $places = null): array | string
182 182
     {
183 183
         if (is_array($value) || is_array($places)) {
184 184
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
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
      *         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($row, $column, $relativity = 1, $referenceStyle = true, $sheetName = ''): array|string
51
+    public static function cell($row, $column, $relativity = 1, $referenceStyle = true, $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/Style/Color.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
      *
290 290
      * @return int|string The extracted colour component
291 291
      */
292
-    private static function getColourComponent($rgbValue, $offset, $hex = true): string|int
292
+    private static function getColourComponent($rgbValue, $offset, $hex = true): string | int
293 293
     {
294 294
         $colour = substr($rgbValue, $offset, 2) ?: '';
295 295
         if (preg_match('/^[0-9a-f]{2}$/i', $colour) !== 1) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/PlotArea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      *
74 74
      * @return int
75 75
      */
76
-    public function getPlotSeriesCount(): int|float
76
+    public function getPlotSeriesCount(): int | float
77 77
     {
78 78
         $seriesCount = 0;
79 79
         foreach ($this->plotSeries as $plot) {
Please login to merge, or discard this patch.