Passed
Pull Request — master (#3718)
by Adrien
14:12
created
Category
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Sine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
22 22
      *            with the same dimensions
23 23
      */
24
-    public static function sin($angle): array|string|float
24
+    public static function sin($angle): array | string | float
25 25
     {
26 26
         if (is_array($angle)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
48 48
      *            with the same dimensions
49 49
      */
50
-    public static function sinh($angle): array|string|float
50
+    public static function sinh($angle): array | string | float
51 51
     {
52 52
         if (is_array($angle)) {
53 53
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cosine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
22 22
      *            with the same dimensions
23 23
      */
24
-    public static function cos($number): array|string|float
24
+    public static function cos($number): array | string | float
25 25
     {
26 26
         if (is_array($number)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
48 48
      *            with the same dimensions
49 49
      */
50
-    public static function cosh($number): array|string|float
50
+    public static function cosh($number): array | string | float
51 51
     {
52 52
         if (is_array($number)) {
53 53
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
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($number): array|string|int|float
23
+    public static function evaluate($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/Round.php 1 patch
Spacing   +4 added lines, -4 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 the argument, then the returned result will also be an array
23 23
      *            with the same dimensions
24 24
      */
25
-    public static function round($number, $precision): array|string|float
25
+    public static function round($number, $precision): array | string | float
26 26
     {
27 27
         if (is_array($number) || is_array($precision)) {
28 28
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $precision);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
51 51
      *            with the same dimensions
52 52
      */
53
-    public static function up($number, $digits): array|string|float
53
+    public static function up($number, $digits): array | string | float
54 54
     {
55 55
         if (is_array($number) || is_array($digits)) {
56 56
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
87 87
      *            with the same dimensions
88 88
      */
89
-    public static function down($number, $digits): array|string|float
89
+    public static function down($number, $digits): array | string | float
90 90
     {
91 91
         if (is_array($number) || is_array($digits)) {
92 92
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
166 166
      *            with the same dimensions
167 167
      */
168
-    public static function even($number): array|string|float
168
+    public static function even($number): array | string | float
169 169
     {
170 170
         if (is_array($number)) {
171 171
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Random.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
33 33
      *            with the same dimensions
34 34
      */
35
-    public static function randBetween($min, $max): array|string|int
35
+    public static function randBetween($min, $max): array | string | int
36 36
     {
37 37
         if (is_array($min) || is_array($max)) {
38 38
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $min, $max);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return array|string The resulting array, or a string containing an error
69 69
      */
70
-    public static function randArray($rows = 1, $columns = 1, $min = 0, $max = 1, $wholeNumber = false): string|array
70
+    public static function randArray($rows = 1, $columns = 1, $min = 0, $max = 1, $wholeNumber = false): string | array
71 71
     {
72 72
         try {
73 73
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Roman.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -825,7 +825,7 @@
 block discarded – undo
825 825
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
826 826
      *            with the same dimensions
827 827
      */
828
-    public static function evaluate($aValue, $style = 0): array|string
828
+    public static function evaluate($aValue, $style = 0): array | string
829 829
     {
830 830
         if (is_array($aValue) || is_array($style)) {
831 831
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $aValue, $style);
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($number): array|string|float
23
+    public static function toDegrees($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($number): array|string|float
49
+    public static function toRadians($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.
src/PhpSpreadsheet/Calculation/MathTrig/Sqrt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 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 pi($number): array|string|float
49
+    public static function pi($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.
src/PhpSpreadsheet/Calculation/MathTrig/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
30 30
      *            with the same dimensions
31 31
      */
32
-    public static function evaluate($number, $radix, $minLength = null): array|string
32
+    public static function evaluate($number, $radix, $minLength = null): array | string
33 33
     {
34 34
         if (is_array($number) || is_array($radix) || is_array($minLength)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $radix, $minLength);
Please login to merge, or discard this patch.