Fix a couple of errors introduced with the last namespace changes
This commit is contained in:
parent
621fc9aec7
commit
a39e15f49d
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace class PHPExcel\Shared\Escher\DgContainer;
|
||||
namespace PHPExcel\Shared\Escher\DgContainer;
|
||||
|
||||
/**
|
||||
* PHPExcel_Shared_Escher_DgContainer_SpgrContainer
|
||||
|
|
|
@ -43,7 +43,7 @@ class TimeZone
|
|||
* @param string $timezone Time zone (e.g. 'Europe/London')
|
||||
* @return boolean Success or failure
|
||||
*/
|
||||
public static function _validateTimeZone($timezone)
|
||||
private static function validateTimeZone($timezone)
|
||||
{
|
||||
if (in_array($timezone, DateTimeZone::listIdentifiers())) {
|
||||
return true;
|
||||
|
@ -59,7 +59,7 @@ class TimeZone
|
|||
*/
|
||||
public static function setTimeZone($timezone)
|
||||
{
|
||||
if (self::_validateTimezone($timezone)) {
|
||||
if (self::validateTimezone($timezone)) {
|
||||
self::$timezone = $timezone;
|
||||
return true;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ class TimeZone
|
|||
public static function getTimeZoneAdjustment($timezone, $timestamp)
|
||||
{
|
||||
if ($timezone !== null) {
|
||||
if (!self::_validateTimezone($timezone)) {
|
||||
if (!self::validateTimezone($timezone)) {
|
||||
throw new \PHPExcel\Exception("Invalid timezone " . $timezone);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue