Passed
Pull Request — master (#4382)
by Owen
15:20
created
src/PhpSpreadsheet/Calculation/Statistical/Conditional.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param null|array|string $condition the criteria that defines which cells will be checked
30 30
      * @param mixed $averageRange Data values
31 31
      */
32
-    public static function AVERAGEIF(mixed $range, null|array|string $condition, mixed $averageRange = []): null|int|float|string
32
+    public static function AVERAGEIF(mixed $range, null | array | string $condition, mixed $averageRange = []): null | int | float | string
33 33
     {
34 34
         if (!is_array($range) || !is_array($averageRange) || array_key_exists(0, $range) || array_key_exists(0, $averageRange)) {
35 35
             if ($range === ExcelError::REF()) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @param mixed $args Pairs of Ranges and Criteria
56 56
      */
57
-    public static function AVERAGEIFS(mixed ...$args): null|int|float|string
57
+    public static function AVERAGEIFS(mixed ...$args): null | int | float | string
58 58
     {
59 59
         if (empty($args)) {
60 60
             return 0.0;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param mixed $range Data values, expect array
85 85
      * @param null|array|string $condition the criteria that defines which cells will be counted
86 86
      */
87
-    public static function COUNTIF(mixed $range, null|array|string $condition): string|int
87
+    public static function COUNTIF(mixed $range, null | array | string $condition): string | int
88 88
     {
89 89
         if (
90 90
             !is_array($range)
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      *
119 119
      * @param mixed $args Pairs of Ranges and Criteria
120 120
      */
121
-    public static function COUNTIFS(mixed ...$args): int|string
121
+    public static function COUNTIFS(mixed ...$args): int | string
122 122
     {
123 123
         if (empty($args)) {
124 124
             return 0;
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @param mixed $args Pairs of Ranges and Criteria
144 144
      */
145
-    public static function MAXIFS(mixed ...$args): null|float|string
145
+    public static function MAXIFS(mixed ...$args): null | float | string
146 146
     {
147 147
         if (empty($args)) {
148 148
             return 0.0;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      *
165 165
      * @param mixed $args Pairs of Ranges and Criteria
166 166
      */
167
-    public static function MINIFS(mixed ...$args): null|float|string
167
+    public static function MINIFS(mixed ...$args): null | float | string
168 168
     {
169 169
         if (empty($args)) {
170 170
             return 0.0;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *
187 187
      * @param mixed $range Data values, expecting array
188 188
      */
189
-    public static function SUMIF(mixed $range, mixed $condition, array $sumRange = []): null|float|string
189
+    public static function SUMIF(mixed $range, mixed $condition, array $sumRange = []): null | float | string
190 190
     {
191 191
         if (
192 192
             !is_array($range)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      *
215 215
      * @param mixed $args Pairs of Ranges and Criteria
216 216
      */
217
-    public static function SUMIFS(mixed ...$args): null|float|string
217
+    public static function SUMIFS(mixed ...$args): null | float | string
218 218
     {
219 219
         if (empty($args)) {
220 220
             return 0.0;
Please login to merge, or discard this patch.