@@ -140,9 +140,9 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @param $time |
|
144 | - * @return string |
|
145 | - */ |
|
143 | + * @param $time |
|
144 | + * @return string |
|
145 | + */ |
|
146 | 146 | private function getZone($time): string |
147 | 147 | { |
148 | 148 | return str_replace('_', ' ', $time->format('e')); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @param bool $isLabel |
154 | 154 | * @param bool $isValue |
155 | 155 | * @return array |
156 | - */ |
|
156 | + */ |
|
157 | 157 | private function getTimeZoneList(array $timezones, bool $isLabel = true, bool $isValue = true): array |
158 | 158 | { |
159 | 159 | $label = Config::get('Timezone.LABEL_FIELD_NAME', 'label'); |
@@ -162,11 +162,11 @@ |
||
162 | 162 | $data = []; |
163 | 163 | |
164 | 164 | foreach ($timezones as $timezone) { |
165 | - if($isLabel) { |
|
165 | + if ($isLabel) { |
|
166 | 166 | $data[$label] = $this->getLabel($timezone); |
167 | 167 | } |
168 | 168 | |
169 | - if($isValue) { |
|
169 | + if ($isValue) { |
|
170 | 170 | $data[$value] = $timezone; |
171 | 171 | } |
172 | 172 |