Simplify returns

This commit is contained in:
Gabriel Caruso 2018-01-16 20:41:24 -02:00 committed by Adrien Crivelli
parent 28d827d569
commit 257c3eca58
2 changed files with 2 additions and 10 deletions

View File

@ -23,11 +23,7 @@ class TimeZone
*/ */
private static function validateTimeZone($timezone) private static function validateTimeZone($timezone)
{ {
if (in_array($timezone, DateTimeZone::listIdentifiers())) { return in_array($timezone, DateTimeZone::listIdentifiers());
return true;
}
return false;
} }
/** /**

View File

@ -1469,11 +1469,7 @@ class Worksheet implements IComparable
*/ */
public function conditionalStylesExists($pCoordinate) public function conditionalStylesExists($pCoordinate)
{ {
if (isset($this->conditionalStylesCollection[strtoupper($pCoordinate)])) { return isset($this->conditionalStylesCollection[strtoupper($pCoordinate)]);
return true;
}
return false;
} }
/** /**