@@ -8,8 +8,6 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | namespace EmmetBlue\Core; |
| 10 | 10 | |
| 11 | -use Session\Session; |
|
| 12 | - |
|
| 13 | 11 | /** |
| 14 | 12 | * Class Events |
| 15 | 13 | * |
@@ -19,50 +19,50 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | class Constant |
| 21 | 21 | { |
| 22 | - /** |
|
| 23 | - * Events |
|
| 24 | - */ |
|
| 25 | - const EVENT_INSERT = 'EVENT: INSERT DML EVENT'; |
|
| 26 | - const EVENT_SELECT = 'EVENT: SELECT DML EVENT'; |
|
| 27 | - const EVENT_UPDATE = 'EVENT: UPDATE DML EVENT'; |
|
| 22 | + /** |
|
| 23 | + * Events |
|
| 24 | + */ |
|
| 25 | + const EVENT_INSERT = 'EVENT: INSERT DML EVENT'; |
|
| 26 | + const EVENT_SELECT = 'EVENT: SELECT DML EVENT'; |
|
| 27 | + const EVENT_UPDATE = 'EVENT: UPDATE DML EVENT'; |
|
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * @author Lucky Bardeson |
|
| 31 | - */ |
|
| 32 | - const EVENT_DELETE = 'EVENT: DELETE DML EVENT'; |
|
| 29 | + /** |
|
| 30 | + * @author Lucky Bardeson |
|
| 31 | + */ |
|
| 32 | + const EVENT_DELETE = 'EVENT: DELETE DML EVENT'; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * Error Numbers |
|
| 36 | - */ |
|
| 37 | - const ERROR_401 = 'ERROR_401: Resource Inaccessible'; |
|
| 38 | - const ERROR_402 = 'ERROR_402: Resource Requirements Not Met'; |
|
| 39 | - const ERROR_403 = 'ERROR_403: Resource Not Writable'; |
|
| 40 | - const ERROR_404 = 'ERROR_404: Resource Not Found'; |
|
| 34 | + /** |
|
| 35 | + * Error Numbers |
|
| 36 | + */ |
|
| 37 | + const ERROR_401 = 'ERROR_401: Resource Inaccessible'; |
|
| 38 | + const ERROR_402 = 'ERROR_402: Resource Requirements Not Met'; |
|
| 39 | + const ERROR_403 = 'ERROR_403: Resource Not Writable'; |
|
| 40 | + const ERROR_404 = 'ERROR_404: Resource Not Found'; |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * Error Severities |
|
| 44 | - */ |
|
| 45 | - const ERROR_HIGH = 'ERROR_SEVERITY: HIGH'; |
|
| 46 | - const ERROR_LOW = 'ERROR_SEVERITY: LOW'; |
|
| 47 | - const ERROR_NORMAL = 'ERROR_SEVERITY: NORMAL'; |
|
| 42 | + /** |
|
| 43 | + * Error Severities |
|
| 44 | + */ |
|
| 45 | + const ERROR_HIGH = 'ERROR_SEVERITY: HIGH'; |
|
| 46 | + const ERROR_LOW = 'ERROR_SEVERITY: LOW'; |
|
| 47 | + const ERROR_NORMAL = 'ERROR_SEVERITY: NORMAL'; |
|
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * |
|
| 51 | - */ |
|
| 52 | - const UNDEFINED = 0; |
|
| 49 | + /** |
|
| 50 | + * |
|
| 51 | + */ |
|
| 52 | + const UNDEFINED = 0; |
|
| 53 | 53 | |
| 54 | - public static function getGlobals($config = "configs") { |
|
| 55 | - if (is_file("globals.json")){ |
|
| 56 | - $globalLoc = json_decode(file_get_contents("globals.json"), true); |
|
| 54 | + public static function getGlobals($config = "configs") { |
|
| 55 | + if (is_file("globals.json")){ |
|
| 56 | + $globalLoc = json_decode(file_get_contents("globals.json"), true); |
|
| 57 | 57 | |
| 58 | - if (isset($globalLoc["globals"])){ |
|
| 59 | - $file = $globalLoc["globals"].".json"; |
|
| 58 | + if (isset($globalLoc["globals"])){ |
|
| 59 | + $file = $globalLoc["globals"].".json"; |
|
| 60 | 60 | |
| 61 | - return json_decode(file_get_contents($file), true); |
|
| 62 | - } |
|
| 63 | - } |
|
| 61 | + return json_decode(file_get_contents($file), true); |
|
| 62 | + } |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - throw new Exception\UndefinedValueException("No configuration data set.", 0); |
|
| 65 | + throw new Exception\UndefinedValueException("No configuration data set.", 0); |
|
| 66 | 66 | |
| 67 | - } |
|
| 67 | + } |
|
| 68 | 68 | } |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | const UNDEFINED = 0; |
| 53 | 53 | |
| 54 | 54 | public static function getGlobals($config = "configs") { |
| 55 | - if (is_file("globals.json")){ |
|
| 55 | + if (is_file("globals.json")) { |
|
| 56 | 56 | $globalLoc = json_decode(file_get_contents("globals.json"), true); |
| 57 | 57 | |
| 58 | - if (isset($globalLoc["globals"])){ |
|
| 58 | + if (isset($globalLoc["globals"])) { |
|
| 59 | 59 | $file = $globalLoc["globals"].".json"; |
| 60 | 60 | |
| 61 | 61 | return json_decode(file_get_contents($file), true); |