Passed
Pull Request — master (#3718)
by Adrien
14:12
created
Category
src/PhpSpreadsheet/Writer/Xls/Worksheet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2180,7 +2180,7 @@  discard block
 block discarded – undo
2180 2180
      * @param float $scale_x The horizontal scale
2181 2181
      * @param float $scale_y The vertical scale
2182 2182
      */
2183
-    public function insertBitmap($row, $col, GdImage|string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void
2183
+    public function insertBitmap($row, $col, GdImage | string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void
2184 2184
     {
2185 2185
         $bitmap_array = $bitmap instanceof GdImage
2186 2186
             ? $this->processBitmapGd($bitmap)
@@ -2322,7 +2322,7 @@  discard block
 block discarded – undo
2322 2322
      * @param int $rwB Row containing bottom right corner of object
2323 2323
      * @param int $dyB Distance from bottom of cell
2324 2324
      */
2325
-    private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2325
+    private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2326 2326
     {
2327 2327
         $record = 0x005d; // Record identifier
2328 2328
         $length = 0x003c; // Bytes to follow
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/MemoryDrawing.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
     /**
30 30
      * Image resource.
31 31
      */
32
-    private null|GdImage $imageResource = null;
32
+    private null | GdImage $imageResource = null;
33 33
 
34 34
     /**
35 35
      * Rendering function.
Please login to merge, or discard this patch.
tests/data/Calculation/LookupRef/LOOKUP.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 declare(strict_types=1);
4 4
 
5 5
 return [
6
-    [ // Office reference example #1
6
+    [// Office reference example #1
7 7
         'orange',
8 8
         4.19,
9 9
         [
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             ['blue'],
22 22
         ],
23 23
     ],
24
-    [ // Office reference example #2
24
+    [// Office reference example #2
25 25
         'yellow',
26 26
         5.75,
27 27
         [
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             ['blue'],
40 40
         ],
41 41
     ],
42
-    [ // Office reference example #3
42
+    [// Office reference example #3
43 43
         'blue',
44 44
         7.66,
45 45
         [
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ['blue'],
58 58
         ],
59 59
     ],
60
-    [ // Office reference example #4
60
+    [// Office reference example #4
61 61
         '#N/A',
62 62
         0,
63 63
         [
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             ['blue'],
76 76
         ],
77 77
     ],
78
-    [ // Array form test
78
+    [// Array form test
79 79
         'orange',
80 80
         4.2,
81 81
         [
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Calculation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5249,7 +5249,7 @@  discard block
 block discarded – undo
5249 5249
      * @param mixed $operand1
5250 5250
      * @param mixed $operand2
5251 5251
      */
5252
-    private function executeArrayComparison($operand1, $operand2, string $operation, Stack &$stack, bool $recursingArrays): array
5252
+    private function executeArrayComparison($operand1, $operand2, string $operation, Stack & $stack, bool $recursingArrays): array
5253 5253
     {
5254 5254
         $result = [];
5255 5255
         if (!is_array($operand2)) {
@@ -5294,7 +5294,7 @@  discard block
 block discarded – undo
5294 5294
      *
5295 5295
      * @return mixed
5296 5296
      */
5297
-    private function executeBinaryComparisonOperation($operand1, $operand2, string $operation, Stack &$stack, bool $recursingArrays = false)
5297
+    private function executeBinaryComparisonOperation($operand1, $operand2, string $operation, Stack & $stack, bool $recursingArrays = false)
5298 5298
     {
5299 5299
         //    If we're dealing with matrix operations, we want a matrix result
5300 5300
         if ((is_array($operand1)) || (is_array($operand2))) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Web/Service.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      *
65 65
      * @return string the url encoded output
66 66
      */
67
-    public static function urlEncode($text): string|array
67
+    public static function urlEncode($text): string | array
68 68
     {
69 69
         if (!is_string($text)) {
70 70
             return ExcelError::VALUE();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/CharacterConvert.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 values 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 code($characters): array|string|int
49
+    public static function code($characters): array | string | int
50 50
     {
51 51
         if (is_array($characters)) {
52 52
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $characters);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Trim.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *         If an array of values is passed as the argument, then the returned result will also be an array
40 40
      *            with the same dimensions
41 41
      */
42
-    public static function spaces($stringValue = ''): array|string
42
+    public static function spaces($stringValue = ''): array | string
43 43
     {
44 44
         if (is_array($stringValue)) {
45 45
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Extract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
25 25
      *            will also be an array with matching dimensions
26 26
      */
27
-    public static function left($value, $chars = 1): array|string
27
+    public static function left($value, $chars = 1): array | string
28 28
     {
29 29
         if (is_array($value) || is_array($chars)) {
30 30
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *         If an array of values is passed for the $value, $start or $chars arguments, then the returned result
55 55
      *            will also be an array with matching dimensions
56 56
      */
57
-    public static function mid($value, $start, $chars): array|string
57
+    public static function mid($value, $start, $chars): array | string
58 58
     {
59 59
         if (is_array($value) || is_array($start) || is_array($chars)) {
60 60
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $start, $chars);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
84 84
      *            will also be an array with matching dimensions
85 85
      */
86
-    public static function right($value, $chars = 1): array|string
86
+    public static function right($value, $chars = 1): array | string
87 87
     {
88 88
         if (is_array($value) || is_array($chars)) {
89 89
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      *         If an array of values is passed for the argument, then the returned result
22 22
      *            will also be an array with matching dimensions
23 23
      */
24
-    public static function length($value = ''): array|int
24
+    public static function length($value = ''): array | int
25 25
     {
26 26
         if (is_array($value)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.