Completed
Push — master ( 122153...1ebbbc )
by Nazar
04:18
created
install/functions.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package    CleverStyle CMS
4
- * @subpackage Installer
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+		 * @package    CleverStyle CMS
4
+		 * @subpackage Installer
5
+		 * @author     Nazar Mokrynskyi <[email protected]>
6
+		 * @copyright  Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+		 * @license    MIT License, see license.txt
8
+		 */
9 9
 function install_form () {
10 10
 	$timezones = get_timezones_list();
11 11
 	return h::{'form[method=post]'}(
Please login to merge, or discard this patch.
core/functions.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
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
 /**
9
- * Base system functions, do not edit this file, or make it very carefully
10
- * otherwise system workability may be broken
11
- */
9
+	 * Base system functions, do not edit this file, or make it very carefully
10
+	 * otherwise system workability may be broken
11
+	 */
12 12
 use
13 13
 	cs\Cache,
14 14
 	cs\Config,
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 	cs\Text,
21 21
 	cs\User;
22 22
 /**
23
- * Auto Loading of classes
24
- */
23
+	 * Auto Loading of classes
24
+	 */
25 25
 spl_autoload_register(function ($class) {
26 26
 	static $cache;
27 27
 	if (!isset($cache)) {
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 	return false;
57 57
 }, true, true);
58 58
 /**
59
- * Clean cache of classes autoload and customization
60
- */
59
+	 * Clean cache of classes autoload and customization
60
+	 */
61 61
 function clean_classes_cache () {
62 62
 	if (file_exists(CACHE.'/classes/autoload')) {
63 63
 		unlink(CACHE.'/classes/autoload');
@@ -113,38 +113,38 @@  discard block
 block discarded – undo
113 113
 	User::instance(true)->__finish();
114 114
 }
115 115
 /**
116
- * Enable of errors processing
117
- */
116
+	 * Enable of errors processing
117
+	 */
118 118
 function errors_on () {
119 119
 	error_reporting(defined('DEBUG') && DEBUG ? E_ALL : E_ERROR | E_WARNING | E_PARSE);
120 120
 }
121 121
 /**
122
- * Disabling of errors processing
123
- */
122
+	 * Disabling of errors processing
123
+	 */
124 124
 function errors_off () {
125 125
 	error_reporting(0);
126 126
 }
127 127
 /**
128
- * Enabling of page interface
129
- */
128
+	 * Enabling of page interface
129
+	 */
130 130
 function interface_on () {
131 131
 	Page::instance()->interface	= true;
132 132
 }
133 133
 /**
134
- * Disabling of page interface
135
- */
134
+	 * Disabling of page interface
135
+	 */
136 136
 function interface_off () {
137 137
 	Page::instance()->interface	= false;
138 138
 }
139 139
 /**
140
- * Easy getting of translations
141
- *
142
- * @param string $item
143
- * @param mixed  $arguments There can be any necessary number of arguments here
144
- * @param mixed  $_
145
- *
146
- * @return string
147
- */
140
+	 * Easy getting of translations
141
+	 *
142
+	 * @param string $item
143
+	 * @param mixed  $arguments There can be any necessary number of arguments here
144
+	 * @param mixed  $_
145
+	 *
146
+	 * @return string
147
+	 */
148 148
 function __ ($item, $arguments = null, $_ = null) {
149 149
 	$L = Language::instance();
150 150
 	if (func_num_args() > 1) {
@@ -154,12 +154,12 @@  discard block
 block discarded – undo
154 154
 	}
155 155
 }
156 156
 /**
157
- * Get file url by it's destination in file system
158
- *
159
- * @param string		$source
160
- *
161
- * @return false|string
162
- */
157
+	 * Get file url by it's destination in file system
158
+	 *
159
+	 * @param string		$source
160
+	 *
161
+	 * @return false|string
162
+	 */
163 163
 function url_by_source ($source) {
164 164
 	$Config	= Config::instance(true);
165 165
 	if (!$Config) {
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
 	return false;
173 173
 }
174 174
 /**
175
- * Get file destination in file system by it's url
176
- *
177
- * @param string		$url
178
- *
179
- * @return false|string
180
- */
175
+	 * Get file destination in file system by it's url
176
+	 *
177
+	 * @param string		$url
178
+	 *
179
+	 * @return false|string
180
+	 */
181 181
 function source_by_url ($url) {
182 182
 	$Config	= Config::instance(true);
183 183
 	if (!$Config) {
@@ -189,10 +189,10 @@  discard block
 block discarded – undo
189 189
 	return false;
190 190
 }
191 191
 /**
192
- * Public cache cleaning
193
- *
194
- * @return bool
195
- */
192
+	 * Public cache cleaning
193
+	 *
194
+	 * @return bool
195
+	 */
196 196
 function clean_pcache () {
197 197
 	$ok = true;
198 198
 	$list = get_files_list(PUBLIC_CACHE, false, 'fd', true, true, 'name|desc');
@@ -207,12 +207,12 @@  discard block
 block discarded – undo
207 207
 	return $ok;
208 208
 }
209 209
 /**
210
- * Formatting of time in seconds to human-readable form
211
- *
212
- * @param int		$time	Time in seconds
213
- *
214
- * @return string
215
- */
210
+	 * Formatting of time in seconds to human-readable form
211
+	 *
212
+	 * @param int		$time	Time in seconds
213
+	 *
214
+	 * @return string
215
+	 */
216 216
 function format_time ($time) {
217 217
 	if (!is_numeric($time)) {
218 218
 		return $time;
@@ -250,13 +250,13 @@  discard block
 block discarded – undo
250 250
 	return implode(' ', $res);
251 251
 }
252 252
 /**
253
- * Formatting of data size in bytes to human-readable form
254
- *
255
- * @param int		$size
256
- * @param bool|int	$round
257
- *
258
- * @return float|string
259
- */
253
+	 * Formatting of data size in bytes to human-readable form
254
+	 *
255
+	 * @param int		$size
256
+	 * @param bool|int	$round
257
+	 *
258
+	 * @return float|string
259
+	 */
260 260
 function format_filesize ($size, $round = false) {
261 261
 	if (!is_numeric($size)) {
262 262
 		return $size;
@@ -281,10 +281,10 @@  discard block
 block discarded – undo
281 281
 	return $round ? round($size, $round).$unit : $size.$unit;
282 282
 }
283 283
 /**
284
- * Get list of timezones
285
- *
286
- * @return array
287
- */
284
+	 * Get list of timezones
285
+	 *
286
+	 * @return array
287
+	 */
288 288
 function get_timezones_list () {
289 289
 	if (
290 290
 		!class_exists('\\cs\\Cache', false) ||
@@ -320,12 +320,12 @@  discard block
 block discarded – undo
320 320
 	return $timezones;
321 321
 }
322 322
 /**
323
- * Get multilingual value from $Config->core array
324
- *
325
- * @param string $item
326
- *
327
- * @return false|string
328
- */
323
+	 * Get multilingual value from $Config->core array
324
+	 *
325
+	 * @param string $item
326
+	 *
327
+	 * @return false|string
328
+	 */
329 329
 function get_core_ml_text ($item) {
330 330
 	$Config	= Config::instance(true);
331 331
 	if (!$Config) {
Please login to merge, or discard this patch.
core/functions_global.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   CleverStyle CMS
4
- * @author    Nazar Mokrynskyi <[email protected]>
5
- * @copyright Copyright (c) 2015-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) 2015-2016, Nazar Mokrynskyi
6
+	 * @license   MIT License, see license.txt
7
+	 */
8 8
 /**
9
- * Base system functions, do not edit this file, or make it very carefully
10
- * otherwise system workability may be broken
11
- *
12
- * This particular file contains functions that work with global state (cookies, headers, status codes, etc.)
13
- */
9
+	 * Base system functions, do not edit this file, or make it very carefully
10
+	 * otherwise system workability may be broken
11
+	 *
12
+	 * This particular file contains functions that work with global state (cookies, headers, status codes, etc.)
13
+	 */
14 14
 use
15 15
 	cs\Config,
16 16
 	cs\Request,
Please login to merge, or discard this patch.