We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 197b5eb commit 3191fcaCopy full SHA for 3191fca
src/PhpSpreadsheet/Shared/TimeZone.php
@@ -23,11 +23,7 @@ class TimeZone
23
*/
24
private static function validateTimeZone($timezone)
25
{
26
- if (in_array($timezone, DateTimeZone::listIdentifiers())) {
27
- return true;
28
- }
29
-
30
- return false;
+ return in_array($timezone, DateTimeZone::listIdentifiers());
31
}
32
33
/**
src/PhpSpreadsheet/Worksheet/Worksheet.php
@@ -1469,11 +1469,7 @@ public function getConditionalStyles($pCoordinate)
1469
1470
public function conditionalStylesExists($pCoordinate)
1471
1472
- if (isset($this->conditionalStylesCollection[strtoupper($pCoordinate)])) {
1473
1474
1475
1476
+ return isset($this->conditionalStylesCollection[strtoupper($pCoordinate)]);
1477
1478
1479
0 commit comments