Failed Conditions
Pull Request — develop (#292)
by
unknown
24:31
created
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
                                                 (string) $cfRule['type'] == Conditional::CONDITION_CONTAINSBLANKS
981 981
                                             ) && 
982 982
                                             isset($dxfs[(int) ($cfRule['dxfId'])])
983
-                                        ){
983
+                                        ) {
984 984
                                             $conditionals[(string) $conditional['sqref']][(int) ($cfRule['priority'])] = $cfRule;
985 985
                                         }
986 986
                                     }
@@ -998,7 +998,7 @@  discard block
 block discarded – undo
998 998
                                             $objConditional->setText((string) $cfRule['text']);
999 999
                                         }
1000 1000
 
1001
-                                        if( (true === isset($cfRule['stopIfTrue'])) && ((int) $cfRule['stopIfTrue'] === 1) ) {
1001
+                                        if ((true === isset($cfRule['stopIfTrue'])) && ((int) $cfRule['stopIfTrue'] === 1)) {
1002 1002
                                             $objConditional->setStopIfTrue(Conditional::IF_TRUE_STOP);
1003 1003
                                         }
1004 1004
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@
 block discarded – undo
491 491
                         $objWriter->writeAttribute('text', $conditional->getText());
492 492
                     }
493 493
 
494
-                    if( $conditional->getStopIfTrue() == Conditional::IF_TRUE_STOP ) {
494
+                    if ($conditional->getStopIfTrue() == Conditional::IF_TRUE_STOP) {
495 495
                         $objWriter->writeAttribute('stopIfTrue', '1');
496 496
                     }
497 497
 
Please login to merge, or discard this patch.