mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
Code standards formatting
This commit is contained in:
parent
f1b566b88e
commit
51f9837db4
58 changed files with 220 additions and 213 deletions
|
@ -46,52 +46,52 @@ if (!defined('WEBROOT_DIR')) {
|
|||
* Path to the application's directory.
|
||||
*/
|
||||
if (!defined('APP')) {
|
||||
define('APP', ROOT.DS.APP_DIR.DS);
|
||||
define('APP', ROOT . DS . APP_DIR.DS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to the application's libs directory.
|
||||
*/
|
||||
define('APPLIBS', APP.'Lib'.DS);
|
||||
define('APPLIBS', APP . 'Lib' . DS);
|
||||
|
||||
/**
|
||||
* Path to the public CSS directory.
|
||||
*/
|
||||
define('CSS', WWW_ROOT.'css'.DS);
|
||||
define('CSS', WWW_ROOT . 'css' . DS);
|
||||
|
||||
/**
|
||||
* Path to the public JavaScript directory.
|
||||
*/
|
||||
define('JS', WWW_ROOT.'js'.DS);
|
||||
define('JS', WWW_ROOT . 'js' . DS);
|
||||
|
||||
/**
|
||||
* Path to the public images directory.
|
||||
*/
|
||||
define('IMAGES', WWW_ROOT.'img'.DS);
|
||||
define('IMAGES', WWW_ROOT . 'img' . DS);
|
||||
|
||||
/**
|
||||
* Path to the tests directory.
|
||||
*/
|
||||
if (!defined('TESTS')) {
|
||||
define('TESTS', APP.'Test'.DS);
|
||||
define('TESTS', APP . 'Test' . DS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to the temporary files directory.
|
||||
*/
|
||||
if (!defined('TMP')) {
|
||||
define('TMP', APP.'tmp'.DS);
|
||||
define('TMP', APP . 'tmp' . DS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to the logs directory.
|
||||
*/
|
||||
define('LOGS', TMP.'logs'.DS);
|
||||
define('LOGS', TMP . 'logs' . DS);
|
||||
|
||||
/**
|
||||
* Path to the cache files directory. It can be shared between hosts in a multi-server setup.
|
||||
*/
|
||||
define('CACHE', TMP.'cache'.DS);
|
||||
define('CACHE', TMP . 'cache' . DS);
|
||||
|
||||
/**
|
||||
* Path to the vendors directory.
|
||||
|
@ -143,13 +143,13 @@ Configure::bootstrap(isset($boot) ? $boot : true);
|
|||
if (!defined('FULL_BASE_URL')) {
|
||||
$s = null;
|
||||
if (env('HTTPS')) {
|
||||
$s ='s';
|
||||
$s = 's';
|
||||
}
|
||||
|
||||
$httpHost = env('HTTP_HOST');
|
||||
|
||||
if (isset($httpHost)) {
|
||||
define('FULL_BASE_URL', 'http'.$s.'://'.$httpHost);
|
||||
define('FULL_BASE_URL', 'http' . $s . '://' . $httpHost);
|
||||
}
|
||||
unset($httpHost, $s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue