Failed Conditions
Pull Request — master (#3723)
by Adrien
28:05 queued 19:01
created
src/PhpSpreadsheet/Calculation/DateTimeExcel/Week.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 values is passed as the argument, then the returned result will also be an array
46 46
      *            with the same dimensions
47 47
      */
48
-    public static function number(mixed $dateValue, $method = Constants::STARTWEEK_SUNDAY): array|int|string
48
+    public static function number(mixed $dateValue, $method = Constants::STARTWEEK_SUNDAY): array | int | string
49 49
     {
50 50
         if (is_array($dateValue) || is_array($method)) {
51 51
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dateValue, $method);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
106 106
      *            with the same dimensions
107 107
      */
108
-    public static function isoWeekNumber(mixed $dateValue): array|int|string
108
+    public static function isoWeekNumber(mixed $dateValue): array | int | string
109 109
     {
110 110
         if (is_array($dateValue)) {
111 111
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *         If an array of values is passed as the argument, then the returned result will also be an array
151 151
      *            with the same dimensions
152 152
      */
153
-    public static function day($dateValue, mixed $style = 1): array|string|int
153
+    public static function day($dateValue, mixed $style = 1): array | string | int
154 154
     {
155 155
         if (is_array($dateValue) || is_array($style)) {
156 156
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dateValue, $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/YearFrac.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *         If an array of values is passed for the $startDate or $endDays,arguments, then the returned result
44 44
      *            will also be an array with matching dimensions
45 45
      */
46
-    public static function fraction(mixed $startDate, mixed $endDate, $method = 0): array|string|int|float
46
+    public static function fraction(mixed $startDate, mixed $endDate, $method = 0): array | string | int | float
47 47
     {
48 48
         if (is_array($startDate) || is_array($endDate) || is_array($method)) {
49 49
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/DateParts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
29 29
      *            with the same dimensions
30 30
      */
31
-    public static function day(mixed $dateValue): array|int|string
31
+    public static function day(mixed $dateValue): array | int | string
32 32
     {
33 33
         if (is_array($dateValue)) {
34 34
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
70 70
      *            with the same dimensions
71 71
      */
72
-    public static function month(mixed $dateValue): array|string|int
72
+    public static function month(mixed $dateValue): array | string | int
73 73
     {
74 74
         if (is_array($dateValue)) {
75 75
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
109 109
      *            with the same dimensions
110 110
      */
111
-    public static function year(mixed $dateValue): array|string|int
111
+    public static function year(mixed $dateValue): array | string | int
112 112
     {
113 113
         if (is_array($dateValue)) {
114 114
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/Helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * Return result in one of three formats.
129 129
      */
130
-    public static function returnIn3FormatsArray(array $dateArray, bool $noFrac = false): DateTime|float|int
130
+    public static function returnIn3FormatsArray(array $dateArray, bool $noFrac = false): DateTime | float | int
131 131
     {
132 132
         $retType = Functions::getReturnDateType();
133 133
         if ($retType === Functions::RETURNDATE_PHP_DATETIME_OBJECT) {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     /**
180 180
      * Return result in one of three formats.
181 181
      */
182
-    public static function returnIn3FormatsObject(DateTime $PHPDateObject): DateTime|float|int
182
+    public static function returnIn3FormatsObject(DateTime $PHPDateObject): DateTime | float | int
183 183
     {
184 184
         $retType = Functions::getReturnDateType();
185 185
         if ($retType === Functions::RETURNDATE_PHP_DATETIME_OBJECT) {
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     /**
225 225
      * Many functions accept null argument treated as 0.
226 226
      */
227
-    public static function validateNumericNull(mixed $number): int|float
227
+    public static function validateNumericNull(mixed $number): int | float
228 228
     {
229 229
         $number = Functions::flattenSingleValue($number);
230 230
         if ($number === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeParts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
28 28
      *            with the same dimensions
29 29
      */
30
-    public static function hour(mixed $timeValue): array|string|int
30
+    public static function hour(mixed $timeValue): array | string | int
31 31
     {
32 32
         if (is_array($timeValue)) {
33 33
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
69 69
      *            with the same dimensions
70 70
      */
71
-    public static function minute(mixed $timeValue): array|string|int
71
+    public static function minute(mixed $timeValue): array | string | int
72 72
     {
73 73
         if (is_array($timeValue)) {
74 74
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
110 110
      *            with the same dimensions
111 111
      */
112
-    public static function second(mixed $timeValue): array|string|int
112
+    public static function second(mixed $timeValue): array | string | int
113 113
     {
114 114
         if (is_array($timeValue)) {
115 115
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@
 block discarded – undo
439 439
      * @deprecated 1.23.0 Use the isLogical() method in the Information\Value class instead
440 440
      * @see Information\Value::isLogical()
441 441
      */
442
-    public static function isLogical(mixed $value = null): bool|array
442
+    public static function isLogical(mixed $value = null): bool | array
443 443
     {
444 444
         return Information\Value::isLogical($value);
445 445
     }
Please login to merge, or discard this patch.