Clean up enums and cache-keys configs

This commit is contained in:
Nabeel Shahzad
2017-07-04 15:43:47 -05:00
parent 870eefb83d
commit 7265eb1913
7 changed files with 45 additions and 96 deletions

View File

@@ -1,31 +1,21 @@
<?php
# TODO: Remove this ugly hackiness
if(defined('VMSEnums')) {
return;
} else {
define('VMSEnums', true);
}
return [
'sources' => [
'MANUAL' => 0,
'ACARS' => 1,
],
class VMSEnums
{
public static $sources
= [
'MANUAL' => 0,
'ACARS' => 1,
];
'pirep_status' => [
'PENDING' => 0,
'ACCEPTED' => 1,
'REJECTED' => -1,
],
public static $pirep_status
= [
'PENDING' => 0,
'ACCEPTED' => 1,
'REJECTED' => -1,
];
'fuel_types' => [
'100LL' => 0,
'JETA' => 1,
'MOGAS' => 2,
],
];
public static $fuel_types
= [
'100LL' => 0,
'JETA' => 1,
'MOGAS' => 2,
];
}