Simplify returns
This commit is contained in:
parent
28d827d569
commit
257c3eca58
|
@ -23,11 +23,7 @@ class TimeZone
|
|||
*/
|
||||
private static function validateTimeZone($timezone)
|
||||
{
|
||||
if (in_array($timezone, DateTimeZone::listIdentifiers())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return in_array($timezone, DateTimeZone::listIdentifiers());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1469,11 +1469,7 @@ class Worksheet implements IComparable
|
|||
*/
|
||||
public function conditionalStylesExists($pCoordinate)
|
||||
{
|
||||
if (isset($this->conditionalStylesCollection[strtoupper($pCoordinate)])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return isset($this->conditionalStylesCollection[strtoupper($pCoordinate)]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue