Completed
Push — master ( 59aee7...54e8e0 )
by Nazar
04:11
created
build/cli.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
   php build.php -M core -m Plupload,Static_pages
76 76
   php build.php -M core -p TinyMCE -t DarkEnergy -s custom
77 77
   php build.php -M module -m Plupload,Static_pages
78
-HELP;
78
+help;
79 79
 	} elseif ($mode == 'core') {
80 80
 		echo $Builder->core($modules, $plugins, $themes, $suffix)."\n";
81 81
 	} else {
Please login to merge, or discard this patch.
components/plugins/Composer_assets/Assets_processing.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 <FilesMatch "\.css$">
89 89
 	Header set Content-Type text/css
90 90
 </FilesMatch>
91
-HTACCESS
91
+htaccess
92 92
 			);
93 93
 		}
94 94
 		foreach ($files as $file) {
Please login to merge, or discard this patch.
components/modules/Shop/orders_.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 $page           = @$_GET['page'] ?: 1;
26 26
 $count          = @$_GET['count'] ?: Config::instance()->module('Shop')->items_per_page;
27 27
 if ($Session->user()) {
28
-	$orders       = $Orders->get(
28
+	$orders = $Orders->get(
29 29
 		$Orders->search(
30 30
 			[
31 31
 				'user' => $Session->get_user()
Please login to merge, or discard this patch.
components/modules/Blogs/admin/edit_section.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 				'value' => $section['title']
38 38
 			]
39 39
 		).
40
-		($Config->core['simple_admin_mode'] ? false :
41
-			h::{'label info'}('blogs_section_path').
40
+		($Config->core['simple_admin_mode'] ? false : h::{'label info'}('blogs_section_path').
42 41
 			h::{'input[is=cs-input-text][name=path]'}(
43 42
 				[
44 43
 					'value' => $section['path']
Please login to merge, or discard this patch.
components/modules/Blogs/admin/prepare.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,16 +15,16 @@  discard block
 block discarded – undo
15 15
 	cs\User;
16 16
 
17 17
 function get_sections_rows ($structure = null, $level = 0) {
18
-	$L			= new Prefix('blogs_');
19
-	$root		= false;
20
-	$module		= path($L->Blogs);
18
+	$L = new Prefix('blogs_');
19
+	$root = false;
20
+	$module = path($L->Blogs);
21 21
 	if ($structure === null) {
22
-		$structure			= Sections::instance()->get_structure();
23
-		$structure['title']	= $L->root_section;
24
-		$root				= true;
22
+		$structure = Sections::instance()->get_structure();
23
+		$structure['title'] = $L->root_section;
24
+		$root = true;
25 25
 	}
26
-	$content	= [];
27
-	$content[]	= [
26
+	$content = [];
27
+	$content[] = [
28 28
 		[
29 29
 			h::a(
30 30
 				$structure['title'].
@@ -72,36 +72,36 @@  discard block
 block discarded – undo
72 72
 	return $content;
73 73
 }
74 74
 function get_sections_select_section ($current = null, $structure = null, $level = 0) {
75
-	$list	= [
75
+	$list = [
76 76
 		'in'	=> [],
77 77
 		'value'	=> []
78 78
 	];
79 79
 	if ($structure === null) {
80
-		$structure			= Sections::instance()->get_structure();
81
-		$L					= new Prefix('blogs_');
82
-		$list['in'][]		= $L->root_section;
83
-		$list['value'][]	= 0;
80
+		$structure = Sections::instance()->get_structure();
81
+		$L = new Prefix('blogs_');
82
+		$list['in'][] = $L->root_section;
83
+		$list['value'][] = 0;
84 84
 	} else {
85 85
 		if ($structure['id'] == $current) {
86 86
 			return $list;
87 87
 		}
88
-		$list['in'][]		= str_repeat('&nbsp;', $level).$structure['title'];
89
-		$list['value'][]	= $structure['id'];
88
+		$list['in'][] = str_repeat('&nbsp;', $level).$structure['title'];
89
+		$list['value'][] = $structure['id'];
90 90
 	}
91 91
 	if (!empty($structure['sections'])) {
92 92
 		foreach ($structure['sections'] as $section) {
93
-			$tmp			= get_sections_select_section($current, $section, $level+1);
94
-			$list['in']		= array_merge($list['in'], $tmp['in']);
95
-			$list['value']	= array_merge($list['value'], $tmp['value']);
93
+			$tmp = get_sections_select_section($current, $section, $level + 1);
94
+			$list['in'] = array_merge($list['in'], $tmp['in']);
95
+			$list['value'] = array_merge($list['value'], $tmp['value']);
96 96
 		}
97 97
 	}
98 98
 	return $list;
99 99
 }
100 100
 function get_posts_rows ($page = 1) {
101
-	$Posts		= Posts::instance();
102
-	$Sections	= Sections::instance();
101
+	$Posts = Posts::instance();
102
+	$Sections = Sections::instance();
103 103
 	$Config		= Config::instance();
104
-	$L			= new Prefix('blogs_');
104
+	$L = new Prefix('blogs_');
105 105
 	$User		= User::instance();
106 106
 	$module		= path($L->Blogs);
107 107
 	$page		= (int)$page ?: 1;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	$num		= $Config->module('Blogs')->posts_per_page;
110 110
 	$from		= ($page - 1) * $num;
111 111
 	$cdb		= DB::instance()->{$Config->module('Blogs')->db('posts')};
112
-	$posts		= $cdb->qfas(
112
+	$posts = $cdb->qfas(
113 113
 		"SELECT `id`
114 114
 		FROM `[prefix]blogs_posts`
115 115
 		ORDER BY `id` DESC
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 				);
132 132
 			}
133 133
 			unset($section);
134
-			$content[]	= [
134
+			$content[] = [
135 135
 				h::a(
136 136
 					$post['title'],
137 137
 					[
Please login to merge, or discard this patch.
components/modules/Blogs/admin/add_section.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 				'value' => $section['title']
38 38
 			]
39 39
 		).
40
-		($Config->core['simple_admin_mode'] ? false :
41
-			h::{'label info'}('blogs_section_path').
40
+		($Config->core['simple_admin_mode'] ? false : h::{'label info'}('blogs_section_path').
42 41
 			h::{'input[is=cs-input-text][name=path]'}(
43 42
 				[
44 43
 					'value' => $section['path']
Please login to merge, or discard this patch.
core/traits/Singleton.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 use
10 10
 	cs\Singleton\Base;
11 11
 /**
12
- * @inheritdoc
13
- */
12
+	 * @inheritdoc
13
+	 */
14 14
 trait Singleton {
15 15
 	use Base;
16 16
 }
Please login to merge, or discard this patch.
core/traits/Singleton/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 				'aliases'     => &$aliases,
62 62
 				'final_class' => &$next_alias
63 63
 			];
64
-			$classes                  = defined('CUSTOM') ? glob(CUSTOM.'/classes/'.substr($class, 2).'_*.php') : [];
64
+			$classes = defined('CUSTOM') ? glob(CUSTOM.'/classes/'.substr($class, 2).'_*.php') : [];
65 65
 			foreach ($classes as $custom_class) {
66 66
 				// Path to file with customized class
67 67
 				$custom_class = str_replace(CUSTOM.'/classes/', '', substr($custom_class, 0, -4));
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 					'alias'    => "cs\\custom\\$_custom_class",
75 75
 					'path'     => $custom_class
76 76
 				];
77
-				$next_alias      = "cs\\custom\\$custom_class";
77
+				$next_alias = "cs\\custom\\$custom_class";
78 78
 			}
79 79
 			modified_classes($modified_classes);
80 80
 		}
Please login to merge, or discard this patch.
install.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	define('DIR', __DIR__);
21 21
 }
22 22
 mb_internal_encoding('utf-8');
23
-define('ROOT', getcwd());    //Path to site root
23
+define('ROOT', getcwd()); //Path to site root
24 24
 $fs = json_decode(file_get_contents(DIR.'/fs.json'), true);
25 25
 /**
26 26
  * Special autoloader for installer
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
 		 * Try to load classes from different places. If not found in one place - try in another.
39 39
 		 */
40 40
 		if (
41
-			strlen($file = @$fs[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) ||    //Core classes
41
+			strlen($file = @$fs[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) || //Core classes
42 42
 			strlen($file = @$fs[str_replace('//', '/', "core/thirdparty/$namespace/$class_name.php")]) || //Third party classes
43
-			strlen($file = @$fs[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) ||     //Core traits
44
-			strlen($file = @$fs[str_replace('//', '/', "core/engines/$namespace/$class_name.php")]) ||    //Core engines
43
+			strlen($file = @$fs[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) || //Core traits
44
+			strlen($file = @$fs[str_replace('//', '/', "core/engines/$namespace/$class_name.php")]) || //Core engines
45 45
 			strlen($file = @$fs[str_replace('//', '/', "components/$namespace/$class_name.php")])         //Classes in modules and plugins
46 46
 		) {
47 47
 			require_once DIR."/fs/$file";
Please login to merge, or discard this patch.