@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $dbl_offset = (float) str_replace(':', '.', $str_offset); |
68 | 68 | |
69 | 69 | //only strip things if we're bothering with regions |
70 | - if (! empty($region)) { |
|
70 | + if (!empty($region)) { |
|
71 | 71 | $timezone = substr($timezone, strlen($region) + 1); |
72 | 72 | } |
73 | 73 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | // Attributes for select element |
102 | 102 | $attrSet = ''; |
103 | - if (isset($opts['attr']) && is_array($opts['attr']) && ! empty($opts['attr'])) { |
|
103 | + if (isset($opts['attr']) && is_array($opts['attr']) && !empty($opts['attr'])) { |
|
104 | 104 | $attr = $opts['attr']; |
105 | 105 | |
106 | 106 | foreach ($attr as $attr_name => $attr_value) { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | $limit_regions = []; |
118 | 118 | //setup specfic regions - could be better and validate them here too, but, eh... |
119 | - if (isset($opts['regions']) && is_array($opts['regions']) && ! empty($opts['regions'])) { |
|
119 | + if (isset($opts['regions']) && is_array($opts['regions']) && !empty($opts['regions'])) { |
|
120 | 120 | $limit_regions = $opts['regions']; |
121 | 121 | } |
122 | 122 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $regions = []; |
127 | 127 | if ($with_regions) { |
128 | 128 | $regions = self::$regions; |
129 | - } elseif (! empty($limit_regions)) { |
|
129 | + } elseif (!empty($limit_regions)) { |
|
130 | 130 | foreach ($limit_regions as $region) { |
131 | 131 | $regions[$region] = self::$regions[$region]; |
132 | 132 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | $date = new DateTime($timestamp, new DateTimeZone('UTC')); |
218 | 218 | |
219 | 219 | $list = DateTimeZone::listIdentifiers(); |
220 | - if (! in_array($timezone, $list)) { |
|
220 | + if (!in_array($timezone, $list)) { |
|
221 | 221 | $timezone = 'UTC'; |
222 | 222 | } |
223 | 223 | $date->setTimezone(new DateTimeZone($timezone)); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | public static function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s') |
237 | 237 | { |
238 | 238 | $list = DateTimeZone::listIdentifiers(); |
239 | - if (! in_array($timezone, $list)) { |
|
239 | + if (!in_array($timezone, $list)) { |
|
240 | 240 | $timezone = 'UTC'; |
241 | 241 | } |
242 | 242 |