Failed Conditions
Pull Request — master (#3718)
by Adrien
21:05 queued 12:51
created
src/PhpSpreadsheet/Chart/Legend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      *
110 110
      * @return false|int
111 111
      */
112
-    public function getPositionXL(): int|bool
112
+    public function getPositionXL(): int | bool
113 113
     {
114 114
         // Scrutinizer thinks the following could return string. It is wrong.
115 115
         return array_search($this->position, self::POSITION_XLREF);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      *
58 58
      * @return array|string The resulting array, or a string containing an error
59 59
      */
60
-    public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string|array
60
+    public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string | array
61 61
     {
62 62
         try {
63 63
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/HashTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      *
113 113
      * @return false|int Index
114 114
      */
115
-    public function getIndexForHashCode(string $hashCode): int|bool
115
+    public function getIndexForHashCode(string $hashCode): int | bool
116 116
     {
117 117
         // Scrutinizer thinks the following could return string. It is wrong.
118 118
         return array_search($hashCode, $this->keyMap, true);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Chart/Issue589Test.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
      *
22 22
      * @param string|string[] $color HEX color or array with HEX colors
23 23
      */
24
-    private function buildChartSpreadsheet(string|array $color): Spreadsheet
24
+    private function buildChartSpreadsheet(string | array $color): Spreadsheet
25 25
     {
26 26
         // Problem occurs when setting plot line color
27 27
         // The output chart xml file is missing the a:ln tag
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Custom/ComplexAssert.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
         parent::__construct('complexAssert');
21 21
     }
22 22
 
23
-    private function testExpectedExceptions(string|float $expected, string|float $actual): bool
23
+    private function testExpectedExceptions(string | float $expected, string | float $actual): bool
24 24
     {
25 25
         //    Expecting an error, so we do a straight string comparison
26 26
         if ($expected === $actual) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/DataValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         return $returnValue;
53 53
     }
54 54
 
55
-    private function numericOperator(DataValidation $dataValidation, int|float $cellValue): bool
55
+    private function numericOperator(DataValidation $dataValidation, int | float $cellValue): bool
56 56
     {
57 57
         $operator = $dataValidation->getOperator();
58 58
         $formula1 = $dataValidation->getFormula1();
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
@@ -5260,7 +5260,7 @@  discard block
 block discarded – undo
5260 5260
      *
5261 5261
      * @return array
5262 5262
      */
5263
-    private function executeArrayComparison($operand1, $operand2, $operation, Stack &$stack, bool $recursingArrays)
5263
+    private function executeArrayComparison($operand1, $operand2, $operation, Stack & $stack, bool $recursingArrays)
5264 5264
     {
5265 5265
         $result = [];
5266 5266
         if (!is_array($operand2)) {
@@ -5306,7 +5306,7 @@  discard block
 block discarded – undo
5306 5306
      *
5307 5307
      * @return mixed
5308 5308
      */
5309
-    private function executeBinaryComparisonOperation($operand1, $operand2, $operation, Stack &$stack, bool $recursingArrays = false)
5309
+    private function executeBinaryComparisonOperation($operand1, $operand2, $operation, Stack & $stack, bool $recursingArrays = false)
5310 5310
     {
5311 5311
         //    If we're dealing with matrix operations, we want a matrix result
5312 5312
         if ((is_array($operand1)) || (is_array($operand2))) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -883,7 +883,7 @@
 block discarded – undo
883 883
      * @param int $row
884 884
      * @param string $column
885 885
      */
886
-    private function applyInlineStyle(Worksheet &$sheet, $row, $column, array $attributeArray): void
886
+    private function applyInlineStyle(Worksheet & $sheet, $row, $column, array $attributeArray): void
887 887
     {
888 888
         if (!isset($attributeArray['style'])) {
889 889
             return;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Worksheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2323,7 +2323,7 @@
 block discarded – undo
2323 2323
      * @param int $rwB Row containing bottom right corner of object
2324 2324
      * @param int $dyB Distance from bottom of cell
2325 2325
      */
2326
-    private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2326
+    private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2327 2327
     {
2328 2328
         $record = 0x005d; // Record identifier
2329 2329
         $length = 0x003c; // Bytes to follow
Please login to merge, or discard this patch.