Refactor all of the unit conversion code

This commit is contained in:
Nabeel Shahzad
2018-04-07 20:52:12 -05:00
parent eae5989845
commit c102a0d858
25 changed files with 365 additions and 362 deletions

View File

@@ -62,9 +62,9 @@ class CreateSettingsTable extends Migration
$this->addSetting('units.distance', [
'name' => 'Distance Units',
'group' => 'units',
'value' => 'NM',
'value' => 'nmi',
'type' => 'select',
'options' => 'km=kilometers,mi=miles,NM=nautical miles',
'options' => 'km=kilometers,mi=miles,nmi=nautical miles',
'description' => 'The distance unit for display',
]);
@@ -116,9 +116,9 @@ class CreateSettingsTable extends Migration
$this->addSetting('units.temperature', [
'name' => 'Temperature Units',
'group' => 'units',
'value' => 'f',
'value' => 'F',
'type' => 'select',
'options' => 'f=Fahrenheit,c=Celsius',
'options' => 'F=Fahrenheit,C=Celsius',
'description' => 'The units for temperature',
]);