@@ -3,6 +3,6 @@ |
||
3 | 3 | return [ |
4 | 4 | 'DEFAULT_TIME_ZONE' => 'GMT', //GMT or UTC |
5 | 5 | 'TIME_DIFF_SYMBOL' => '.', //+00.00 |
6 | - 'LABEL_FIELD_NAME' => 'label' , |
|
6 | + 'LABEL_FIELD_NAME' => 'label', |
|
7 | 7 | 'VALUE_FIELD_NAME' => 'value' |
8 | 8 | ]; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public function register() |
19 | 19 | { |
20 | 20 | $this->mergeConfigFrom(__DIR__.'/config/config.php', 'Timezone'); |
21 | - $this->app->bind('TimeZoneService', function () { |
|
21 | + $this->app->bind('TimeZoneService', function() { |
|
22 | 22 | return new TimeZoneService(); |
23 | 23 | }); |
24 | 24 | } |
@@ -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 |