@@ -70,9 +70,9 @@ |
||
| 70 | 70 | * @param string $name Option name parameter |
| 71 | 71 | * @return void |
| 72 | 72 | */ |
| 73 | - public function optionName( $name ) |
|
| 73 | + public function optionName($name) |
|
| 74 | 74 | { |
| 75 | - $this->optionName = ucfirst ( trim( $name ) ); |
|
| 75 | + $this->optionName = ucfirst(trim($name)); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // ------------------------------------------------------------------------ |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | // ------------------------------------------------------------------------ |
| 22 | 22 | |
| 23 | -define( 'STARTUP_TIME', microtime( true ) ); |
|
| 24 | -define( 'STARTUP_MEMORY', memory_get_usage( true ) ); |
|
| 23 | +define('STARTUP_TIME', microtime(true)); |
|
| 24 | +define('STARTUP_MEMORY', memory_get_usage(true)); |
|
| 25 | 25 | |
| 26 | 26 | /* |
| 27 | 27 | *--------------------------------------------------------------- |
@@ -41,13 +41,13 @@ discard block |
||
| 41 | 41 | * NOTE: If you change these, also change the error_reporting() code below |
| 42 | 42 | * |
| 43 | 43 | */ |
| 44 | -if ( ! defined( 'ENVIRONMENT' ) ) { |
|
| 44 | +if ( ! defined('ENVIRONMENT')) { |
|
| 45 | 45 | /** |
| 46 | 46 | * Environment Stage |
| 47 | 47 | * |
| 48 | 48 | * @value DEVELOPMENT|TESTING|PRODUCTION |
| 49 | 49 | */ |
| 50 | - define( 'ENVIRONMENT', 'DEVELOPMENT' ); |
|
| 50 | + define('ENVIRONMENT', 'DEVELOPMENT'); |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Environment Debug Stage |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * NO TRAILING SLASH! |
| 68 | 68 | */ |
| 69 | -if ( ! defined( 'DIR_APP' ) ) { |
|
| 70 | - define( 'DIR_APP', 'app' ); |
|
| 69 | +if ( ! defined('DIR_APP')) { |
|
| 70 | + define('DIR_APP', 'app'); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /* |
@@ -79,8 +79,8 @@ discard block |
||
| 79 | 79 | * |
| 80 | 80 | * NO TRAILING SLASH! |
| 81 | 81 | */ |
| 82 | -if ( ! defined( 'DIR_CACHE' ) ) { |
|
| 83 | - define( 'DIR_CACHE', 'cache' ); |
|
| 82 | +if ( ! defined('DIR_CACHE')) { |
|
| 83 | + define('DIR_CACHE', 'cache'); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /* |
@@ -92,8 +92,8 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * NO TRAILING SLASH! |
| 94 | 94 | */ |
| 95 | -if ( ! defined( 'DIR_STORAGE' ) ) { |
|
| 96 | - define( 'DIR_STORAGE', 'storage' ); |
|
| 95 | +if ( ! defined('DIR_STORAGE')) { |
|
| 96 | + define('DIR_STORAGE', 'storage'); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /* |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * NO TRAILING SLASH! |
| 107 | 107 | */ |
| 108 | -if ( ! defined( 'DIR_RESOURCES' ) ) { |
|
| 109 | - define( 'DIR_RESOURCES', 'resources' ); |
|
| 108 | +if ( ! defined('DIR_RESOURCES')) { |
|
| 109 | + define('DIR_RESOURCES', 'resources'); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /* |
@@ -118,12 +118,12 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * NO TRAILING SLASH! |
| 120 | 120 | */ |
| 121 | -if ( ! defined( 'DIR_PUBLIC' ) ) { |
|
| 121 | +if ( ! defined('DIR_PUBLIC')) { |
|
| 122 | 122 | // cpanel based hosting |
| 123 | - if(is_dir('../public_html')) { |
|
| 124 | - define( 'DIR_PUBLIC', 'public' ); |
|
| 123 | + if (is_dir('../public_html')) { |
|
| 124 | + define('DIR_PUBLIC', 'public'); |
|
| 125 | 125 | } else { |
| 126 | - define( 'DIR_PUBLIC', 'public' ); |
|
| 126 | + define('DIR_PUBLIC', 'public'); |
|
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * DEFINE ROOT PATH |
| 133 | 133 | *--------------------------------------------------------------- |
| 134 | 134 | */ |
| 135 | -define( 'PATH_ROOT', dirname( __FILE__ ) . DIRECTORY_SEPARATOR ); |
|
| 135 | +define('PATH_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR); |
|
| 136 | 136 | |
| 137 | 137 | /* |
| 138 | 138 | *--------------------------------------------------------------- |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * |
| 142 | 142 | * Ensure the current directory is pointing to the front controller's directory |
| 143 | 143 | */ |
| 144 | -chdir( __DIR__ . DIRECTORY_SEPARATOR ); |
|
| 144 | +chdir(__DIR__ . DIRECTORY_SEPARATOR); |
|
| 145 | 145 | |
| 146 | 146 | /* |
| 147 | 147 | |-------------------------------------------------------------------------- |
@@ -161,6 +161,6 @@ discard block |
||
| 161 | 161 | * STARTUP O2SYSTEM |
| 162 | 162 | * ------------------------------------------------------ |
| 163 | 163 | */ |
| 164 | -if ( class_exists( 'O2System\Reactor', false ) ) { |
|
| 164 | +if (class_exists('O2System\Reactor', false)) { |
|
| 165 | 165 | O2System\Reactor::getInstance(); |
| 166 | 166 | } |
| 167 | 167 | \ No newline at end of file |