Completed
Branch master (0964ce)
by Nazar
04:13
created
Storage.php 2 patches
Switch Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -29,48 +29,48 @@
 block discarded – undo
29 29
 }
30 30
 
31 31
 switch ($data['function']) {
32
-	default:
33
-		return;
34
-	case 'get_files_list':
35
-		echo _json_encode(get_files_list($data['dir'], $data['mask'], $data['mode'], $data['prefix_path'], $data['subfolders'], $data['sort'], $data['exclusion'], $data['system_files'], null, $data['limit']));
36
-		return;
37
-	case 'file':
38
-		echo _json_encode(file($data['filename'], $data['flags']));
39
-		return;
40
-	case 'file_get_contents':
41
-		echo file_get_contents($data['filename'], $data['flags'], null, $data['offset'], $data['maxlen']);
42
-		return;
43
-	case 'file_put_contents':
44
-		echo file_put_contents($data['filename'], $data['data'], $data['flags']);
45
-		return;
46
-	case 'copy':
47
-		echo copy($data['source'], $data['dest']);
48
-		return;
49
-	case 'unlink':
50
-		echo unlink($data['filename']);
51
-		return;
52
-	case 'file_exists':
53
-		echo file_exists($data['filename']);
54
-		return;
55
-	case 'move_uploaded_file':
56
-		echo copy($data['filename'], $data['destination']);
57
-		return;
58
-	case 'rename':
59
-		echo rename($data['oldname'], $data['newname']);
60
-		return;
61
-	case 'mkdir':
62
-		echo mkdir($data['pathname']);
63
-		return;
64
-	case 'rmdir':
65
-		echo rmdir($data['dirname']);
66
-		return;
67
-	case 'is_file':
68
-		echo is_file($data['filename']);
69
-		return;
70
-	case 'is_dir':
71
-		echo is_dir($data['filename']);
72
-		return;
73
-	case 'test':
74
-		echo 'OK';
75
-		return;
32
+		default:
33
+			return;
34
+		case 'get_files_list':
35
+			echo _json_encode(get_files_list($data['dir'], $data['mask'], $data['mode'], $data['prefix_path'], $data['subfolders'], $data['sort'], $data['exclusion'], $data['system_files'], null, $data['limit']));
36
+			return;
37
+		case 'file':
38
+			echo _json_encode(file($data['filename'], $data['flags']));
39
+			return;
40
+		case 'file_get_contents':
41
+			echo file_get_contents($data['filename'], $data['flags'], null, $data['offset'], $data['maxlen']);
42
+			return;
43
+		case 'file_put_contents':
44
+			echo file_put_contents($data['filename'], $data['data'], $data['flags']);
45
+			return;
46
+		case 'copy':
47
+			echo copy($data['source'], $data['dest']);
48
+			return;
49
+		case 'unlink':
50
+			echo unlink($data['filename']);
51
+			return;
52
+		case 'file_exists':
53
+			echo file_exists($data['filename']);
54
+			return;
55
+		case 'move_uploaded_file':
56
+			echo copy($data['filename'], $data['destination']);
57
+			return;
58
+		case 'rename':
59
+			echo rename($data['oldname'], $data['newname']);
60
+			return;
61
+		case 'mkdir':
62
+			echo mkdir($data['pathname']);
63
+			return;
64
+		case 'rmdir':
65
+			echo rmdir($data['dirname']);
66
+			return;
67
+		case 'is_file':
68
+			echo is_file($data['filename']);
69
+			return;
70
+		case 'is_dir':
71
+			echo is_dir($data['filename']);
72
+			return;
73
+		case 'test':
74
+			echo 'OK';
75
+			return;
76 76
 }
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package    CleverStyle CMS
4
- * @subpackage HTTP Storage Engine backend
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- *
9
- * Requires config.php file in current directory with specified global variables $STORAGE_USER and $STORAGE_PASSWORD
10
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage HTTP Storage Engine backend
5
+	 * @author     Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 *
9
+	 * Requires config.php file in current directory with specified global variables $STORAGE_USER and $STORAGE_PASSWORD
10
+	 */
11 11
 header('Content-Type: text/html; charset=utf-8');
12 12
 header('Connection: close');
13 13
 require __DIR__.'/core/thirdparty/upf.php';
Please login to merge, or discard this patch.
build.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 Builder
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+		 * @package    CleverStyle CMS
4
+		 * @subpackage Builder
5
+		 * @author     Nazar Mokrynskyi <[email protected]>
6
+		 * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+		 * @license    MIT License, see license.txt
8
+		 */
9 9
 if (!Phar::canWrite()) {
10 10
 	echo "CleverStyle CMS Builder can't work, set, please, \"phar.readonly=off\" option in \"php.ini\"";
11 11
 	return;
Please login to merge, or discard this patch.
build/Builder.php 2 patches
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 Builder
5
- * @author     Nazar Mokrynskyi <[email protected]>
6
- * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license    MIT License, see license.txt
8
- */
3
+	 * @package    CleverStyle CMS
4
+	 * @subpackage Builder
5
+	 * @author     Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright  Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+	 * @license    MIT License, see license.txt
8
+	 */
9 9
 namespace cs;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
 			"$this->root/license.txt",
263 263
 			"$this->root/Storage.php"
264 264
 		];
265
-		$files            = [];
265
+		$files = [];
266 266
 		foreach ($files_to_include as $s) {
267 267
 			if (is_file($s)) {
268 268
 				$files[] = $s;
Please login to merge, or discard this patch.
components/modules/Blockchain_payment/Transactions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 	use
23 23
 		Singleton;
24 24
 
25
-	protected $data_model     = [
25
+	protected $data_model = [
26 26
 		'id'                     => 'int',
27 27
 		'amount'                 => 'float:0',
28 28
 		'currency'               => 'text',
Please login to merge, or discard this 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   Blockchain payment
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blockchain payment
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blockchain_payment;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Blockchain_payment/admin/transactions.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		@$_GET['asc']
54 54
 	)
55 55
 );
56
-$transactions_total        = $Transactions->search(
56
+$transactions_total = $Transactions->search(
57 57
 	[
58 58
 		'total_count' => 1
59 59
 	] + (array)$_GET,
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
 		h::tr(
80 80
 			array_map(
81 81
 				function ($transaction) use ($L, $Language) {
82
-					$created   = $transaction['created']
82
+					$created = $transaction['created']
83 83
 						? $L->to_locale(
84 84
 							date($Language->{TIME - $transaction['created'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['created'])
85 85
 						)
86 86
 						: '-';
87
-					$paid      = $transaction['paid']
87
+					$paid = $transaction['paid']
88 88
 						? $L->to_locale(
89 89
 							date($Language->{TIME - $transaction['paid'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['paid'])
90 90
 						)
Please login to merge, or discard this 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   Blockchain payment
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blockchain payment
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blockchain_payment;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Blockchain_payment/index.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   Blockchain payment
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blockchain payment
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blockchain_payment;
10 10
 use
11 11
 	h,
Please login to merge, or discard this patch.
components/modules/Blogs/Sections.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 				]
107 107
 			);
108 108
 		}
109
-		$sections              = $this->db()->qfa(
109
+		$sections = $this->db()->qfa(
110 110
 			[
111 111
 				"SELECT
112 112
 					`id`,
Please login to merge, or discard this 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   Blogs
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blogs
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	cs\Language;
Please login to merge, or discard this patch.
components/modules/Blogs/Tags.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Blogs
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Blogs
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Blogs;
10 10
 use
11 11
 	cs\Cache\Prefix,
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 	cs\plugins\Tags\Tags as Tags_trait,
14 14
 	cs\Singleton;
15 15
 /**
16
- * Tags trait
17
- *
18
- * Provides methods for working with tags for faster development
19
- *
20
- * @method static Tags instance($check = false)
21
- */
16
+	 * Tags trait
17
+	 *
18
+	 * Provides methods for working with tags for faster development
19
+	 *
20
+	 * @method static Tags instance($check = false)
21
+	 */
22 22
 class Tags {
23 23
 	use
24 24
 		Tags_trait,
Please login to merge, or discard this patch.
components/modules/Blogs/admin/browse_posts.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
 	cs\Language,
16 16
 	cs\Page,
17 17
 	cs\Route;
18
-$Config			= Config::instance();
19
-$Index			= Index::instance();
20
-$L				= Language::instance();
21
-$Index->buttons	= false;
18
+$Config = Config::instance();
19
+$Index = Index::instance();
20
+$L = Language::instance();
21
+$Index->buttons = false;
22 22
 Page::instance()->title($L->browse_posts);
23 23
 $Route			= Route::instance();
24 24
 $page			= isset($Route->route[1]) ? (int)$Route->route[1] : 1;
Please login to merge, or discard this 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		Blogs
4
- * @category	modules
5
- * @author		Nazar Mokrynskyi <[email protected]>
6
- * @copyright	Copyright (c) 2011-2015, Nazar Mokrynskyi
7
- * @license		MIT License, see license.txt
8
- */
3
+	 * @package		Blogs
4
+	 * @category	modules
5
+	 * @author		Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright	Copyright (c) 2011-2015, Nazar Mokrynskyi
7
+	 * @license		MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 Event::instance()->on(
11 11
 	'admin/System/components/modules/install/after',
Please login to merge, or discard this patch.