@@ -423,15 +423,17 @@ |
||
423 | 423 | $cellValue = $this->getValue(); |
424 | 424 | $cellValidation = $this->getDataValidation(); |
425 | 425 | |
426 | - if (!$cellValidation->getAllowBlank() && (is_null($cellValue) || $cellValue == "")) |
|
427 | - return false; |
|
426 | + if (!$cellValidation->getAllowBlank() && (is_null($cellValue) || $cellValue == "")) { |
|
427 | + return false; |
|
428 | + } |
|
428 | 429 | |
429 | 430 | // TODO: write check on all cases |
430 | 431 | switch ($cellValidation->getType()) { |
431 | 432 | case Cell\DataValidation::TYPE_LIST: |
432 | 433 | $formula1 = $cellValidation->getFormula1(); |
433 | - if (empty($formula1)) |
|
434 | - break; |
|
434 | + if (empty($formula1)) { |
|
435 | + break; |
|
436 | + } |
|
435 | 437 | |
436 | 438 | if ($formula1[0] == '"') { // inline values list |
437 | 439 | return in_array(strtolower($cellValue), explode(',', strtolower(trim($formula1, '"'))), true); |