Completed
Push — master ( 0e1017...87dcd8 )
by Nazar
04:21
created
components/modules/Shop/Attributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.
components/modules/Shop/Order_statuses.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.
components/modules/Shop/Shipping_types.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	use
21 21
 		CRUD,
22 22
 		Singleton;
23
-	protected $data_model          = [
23
+	protected $data_model = [
24 24
 		'id'     => 'int',
25 25
 		'title'  => 'ml:text',
26 26
 		'path'   => 'ml:text',
Please login to merge, or discard this patch.
components/modules/Polls/Answers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 		'option' => 'int',
28 28
 		'user'   => 'int'
29 29
 	];
30
-	protected $table      = '[prefix]polls_options_answers';
30
+	protected $table = '[prefix]polls_options_answers';
31 31
 
32 32
 	protected function cdb () {
33 33
 		return Config::instance()->module('Polls')->db('polls');
Please login to merge, or discard this patch.
components/modules/System/api/Controller/admin/about_server.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 				ob_wrapper('phpinfo'),
88 88
 				$version
89 89
 			);
90
-			$return = "Apache $version[1]";
90
+			$return = "apache $version[1]";
91 91
 			if (stripos($phpinfo, 'mod_php') !== false) {
92 92
 				$return .= ' + mod_php + PHP '.PHP_VERSION;
93 93
 			}
Please login to merge, or discard this patch.
components/modules/Photo_gallery/admin/galleries/add.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 			).
26 26
 			h::label($L->gallery_title).
27 27
 			h::{'input[is=cs-input-text][name=add[title]]'}().
28
-			($Config->core['simple_admin_mode'] ? '' :
29
-				h::label(h::info('photo_gallery_gallery_path')).
28
+			($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')).
30 29
 				h::{'input[is=cs-input-text][name=add[path]]'}()
31 30
 			).
32 31
 			h::label($L->gallery_description).
Please login to merge, or discard this patch.
components/modules/Photo_gallery/admin/galleries/edit.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 			).
26 26
 			h::label($L->gallery_title).
27 27
 			h::{'input[is=cs-input-text][name=add[title]]'}().
28
-			($Config->core['simple_admin_mode'] ? '' :
29
-				h::label(h::info('photo_gallery_gallery_path')).
28
+			($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')).
30 29
 				h::{'input[is=cs-input-text][name=add[path]]'}()
31 30
 			).
32 31
 			h::label($L->gallery_description).
Please login to merge, or discard this patch.
components/modules/Blockchain_payment/admin/transactions.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
 			h::tr(
77 77
 				array_map(
78 78
 					function ($transaction) use ($L) {
79
-						$created   = $transaction['created']
79
+						$created = $transaction['created']
80 80
 							? $L->to_locale(
81 81
 								date($L->{TIME - $transaction['created'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['created'])
82 82
 							)
83 83
 							: '-';
84
-						$paid      = $transaction['paid']
84
+						$paid = $transaction['paid']
85 85
 							? $L->to_locale(
86 86
 								date($L->{TIME - $transaction['paid'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['paid'])
87 87
 							)
@@ -93,8 +93,7 @@  discard block
 block discarded – undo
93 93
 							: '-';
94 94
 						$username  = User::instance()->username($transaction['user']);
95 95
 						$class     =
96
-							$transaction['confirmed'] ? 'cs-block-success.cs-text-success' :
97
-								($transaction['paid'] ? 'cs-block-warning.cs-text-warning' : 'cs-block-error.cs-text-error');
96
+							$transaction['confirmed'] ? 'cs-block-success.cs-text-success' : ($transaction['paid'] ? 'cs-block-warning.cs-text-warning' : 'cs-block-error.cs-text-error');
98 97
 						$tag       = "td.$class";
99 98
 						return [
100 99
 							[
Please login to merge, or discard this patch.
components/modules/Shop/admin/categories.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
 			$parent != $category['id'] // infinite loop protection
25 25
 		) {
26 26
 			$parent = $Categories->get($category['parent']);
27
-			if ($parent['parent'] == $category['id']) { // infinite loop protection
27
+			if ($parent['parent'] == $category['id']) {
28
+// infinite loop protection
28 29
 				break;
29 30
 			}
30 31
 			$category['title'] = "$parent[title] :: $category[title]";
Please login to merge, or discard this patch.