Completed
Push — master ( b29ef1...890497 )
by Nazar
04:10
created
components/modules/System/events.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package    CleverStyle CMS
4
- * @subpackage System module
5
- * @category   modules
6
- * @author     Nazar Mokrynskyi <[email protected]>
7
- * @copyright  Copyright (c) 2013-2016, Nazar Mokrynskyi
8
- * @license    MIT License, see license.txt
9
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage System module
5
+	 * @category   modules
6
+	 * @author     Nazar Mokrynskyi <[email protected]>
7
+	 * @copyright  Copyright (c) 2013-2016, Nazar Mokrynskyi
8
+	 * @license    MIT License, see license.txt
9
+	 */
10 10
 namespace cs;
11 11
 use
12 12
 	h;
Please login to merge, or discard this patch.
components/modules/OAuth2/authorize.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   OAuth2
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   OAuth2
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 /**
10
- * Provides next events:<br>
11
- *  OAuth2/custom_sign_in_page
12
- *  OAuth2/custom_allow_access_page
13
- */
10
+	 * Provides next events:<br>
11
+	 *  OAuth2/custom_sign_in_page
12
+	 *  OAuth2/custom_allow_access_page
13
+	 */
14 14
 namespace cs\modules\OAuth2;
15 15
 use
16 16
 	h,
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 $L      = new Prefix('oauth2_');
44 44
 $Page   = Page::instance();
45 45
 /**
46
- * Errors processing
47
- */
46
+	 * Errors processing
47
+	 */
48 48
 if (!isset($_GET['client_id'])) {
49 49
 	error_redirect('invalid_request', 'client_id parameter required');
50 50
 	return;
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 }
132 132
 $Response = Response::instance();
133 133
 /**
134
- * Authorization processing
135
- */
134
+	 * Authorization processing
135
+	 */
136 136
 if (isset($_POST['mode'])) {
137 137
 	if ($_POST['mode'] == 'allow') {
138 138
 		$OAuth2->add_access($client['id']);
Please login to merge, or discard this patch.
core/loader.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 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
 namespace cs;
9 9
 require __DIR__.'/loader_base.php';
10 10
 /**
11
- * Including of custom files
12
- */
11
+	 * Including of custom files
12
+	 */
13 13
 foreach (glob(CUSTOM.'/*.php') ?: [] as $custom) {
14 14
 	include $custom;
15 15
 }
Please login to merge, or discard this patch.
core/functions.php 1 patch
Indentation   +45 added lines, -45 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\App,
14 14
 	cs\Cache,
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 	cs\Response,
20 20
 	cs\Text;
21 21
 /**
22
- * Auto Loading of classes
23
- */
22
+	 * Auto Loading of classes
23
+	 */
24 24
 spl_autoload_register(function ($class) {
25 25
 	static $cache;
26 26
 	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');
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
 	return false;
129 129
 }
130 130
 /**
131
- * Get file destination in file system by it's url
132
- *
133
- * @param string		$url
134
- *
135
- * @return false|string
136
- */
131
+	 * Get file destination in file system by it's url
132
+	 *
133
+	 * @param string		$url
134
+	 *
135
+	 * @return false|string
136
+	 */
137 137
 function source_by_url ($url) {
138 138
 	$Config	= Config::instance(true);
139 139
 	if (!$Config) {
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
 	return false;
146 146
 }
147 147
 /**
148
- * Public cache cleaning
149
- *
150
- * @return bool
151
- */
148
+	 * Public cache cleaning
149
+	 *
150
+	 * @return bool
151
+	 */
152 152
 function clean_pcache () {
153 153
 	$ok = true;
154 154
 	$list = get_files_list(PUBLIC_CACHE, false, 'fd', true, true, 'name|desc');
@@ -163,12 +163,12 @@  discard block
 block discarded – undo
163 163
 	return $ok;
164 164
 }
165 165
 /**
166
- * Formatting of time in seconds to human-readable form
167
- *
168
- * @param int		$time	Time in seconds
169
- *
170
- * @return string
171
- */
166
+	 * Formatting of time in seconds to human-readable form
167
+	 *
168
+	 * @param int		$time	Time in seconds
169
+	 *
170
+	 * @return string
171
+	 */
172 172
 function format_time ($time) {
173 173
 	if (!is_numeric($time)) {
174 174
 		return $time;
@@ -206,13 +206,13 @@  discard block
 block discarded – undo
206 206
 	return implode(' ', $res);
207 207
 }
208 208
 /**
209
- * Formatting of data size in bytes to human-readable form
210
- *
211
- * @param int		$size
212
- * @param bool|int	$round
213
- *
214
- * @return float|string
215
- */
209
+	 * Formatting of data size in bytes to human-readable form
210
+	 *
211
+	 * @param int		$size
212
+	 * @param bool|int	$round
213
+	 *
214
+	 * @return float|string
215
+	 */
216 216
 function format_filesize ($size, $round = false) {
217 217
 	if (!is_numeric($size)) {
218 218
 		return $size;
@@ -237,10 +237,10 @@  discard block
 block discarded – undo
237 237
 	return $round ? round($size, $round).$unit : $size.$unit;
238 238
 }
239 239
 /**
240
- * Get list of timezones
241
- *
242
- * @return array
243
- */
240
+	 * Get list of timezones
241
+	 *
242
+	 * @return array
243
+	 */
244 244
 function get_timezones_list () {
245 245
 	if (
246 246
 		!class_exists('\\cs\\Cache', false) ||
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
 	return $timezones;
277 277
 }
278 278
 /**
279
- * Get multilingual value from $Config->core array
280
- *
281
- * @param string $item
282
- *
283
- * @return false|string
284
- */
279
+	 * Get multilingual value from $Config->core array
280
+	 *
281
+	 * @param string $item
282
+	 *
283
+	 * @return false|string
284
+	 */
285 285
 function get_core_ml_text ($item) {
286 286
 	$Config	= Config::instance(true);
287 287
 	if (!$Config) {
Please login to merge, or discard this patch.