| @@ -1,20 +1,20 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * @package CleverStyle CMS | |
| 4 | - * @author Nazar Mokrynskyi <[email protected]> | |
| 5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi | |
| 6 | - * @license MIT License, see license.txt | |
| 7 | - */ | |
| 3 | + * @package CleverStyle CMS | |
| 4 | + * @author Nazar Mokrynskyi <[email protected]> | |
| 5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi | |
| 6 | + * @license MIT License, see license.txt | |
| 7 | + */ | |
| 8 | 8 | namespace cs; | 
| 9 | 9 | require __DIR__.'/loader_base.php'; //Inclusion of loader base | 
| 10 | 10 | require __DIR__.'/functions_global.php'; //Inclusion of functions that work with global state | 
| 11 | 11 | /** | 
| 12 | - * Wrapper around default `$_SERVER` superglobal | |
| 13 | - */ | |
| 12 | + * Wrapper around default `$_SERVER` superglobal | |
| 13 | + */ | |
| 14 | 14 | $_SERVER = new _SERVER($_SERVER); | 
| 15 | 15 | /** | 
| 16 | - * Including of custom files | |
| 17 | - */ | |
| 16 | + * Including of custom files | |
| 17 | + */ | |
| 18 | 18 |  foreach (glob(CUSTOM.'/*.php') ?: [] as $custom) { | 
| 19 | 19 | include $custom; | 
| 20 | 20 | } | 
| @@ -54,8 +54,7 @@ | ||
| 54 | 54 | * | 
| 55 | 55 | * @throws ExitException | 
| 56 | 56 | */ | 
| 57 | -	function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) { | |
| 58 | - ++static::$id; | |
| 57 | +	function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {++static::$id; | |
| 59 | 58 | $this->init_server($server); | 
| 60 | 59 | $this->init_query($query); | 
| 61 | 60 | $this->init_data_and_files($data, $files, $data_stream); |