Completed
Push — master ( fc7743...6ad0d8 )
by Nazar
04:33
created
modules/Shop/admin/items.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,7 @@
 block discarded – undo
109 109
 								)
110 110
 							],
111 111
 							[
112
-								'class' => $item['listed'] ? 'cs-block-success cs-text-success' :
113
-									($item['in_stock'] || $item['soon'] ? 'cs-block-warning cs-text-warning' : 'cs-block-error cs-text-error')
112
+								'class' => $item['listed'] ? 'cs-block-success cs-text-success' : ($item['in_stock'] || $item['soon'] ? 'cs-block-warning cs-text-warning' : 'cs-block-error cs-text-error')
114 113
 							]
115 114
 						];
116 115
 					},
Please login to merge, or discard this patch.
modules/Shop/categories_.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 if (!$items) {
114 114
 	return;
115 115
 }
116
-$items_total     = $Items->search(
116
+$items_total = $Items->search(
117 117
 	[
118 118
 		'listed'      => 1,
119 119
 		'category'    => $current_category,
Please login to merge, or discard this patch.
modules/Blockchain_payment/Transactions.php 1 patch
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.
core/traits/Singleton/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 					'alias'    => $_custom_class,
118 118
 					'path'     => $custom_class_path
119 119
 				];
120
-				$next_alias      = $custom_class;
120
+				$next_alias = $custom_class;
121 121
 			}
122 122
 			$modified_classes[$class] = [
123 123
 				'aliases'     => $aliases,
Please login to merge, or discard this patch.
core/classes/Request.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
 	 *
68 68
 	 * @throws ExitException
69 69
 	 */
70
-	public function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {
71
-		++static::$id;
70
+	public function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {++static::$id;
72 71
 		$this->init_server($server);
73 72
 		$this->init_query($query);
74 73
 		$this->init_data_and_files($data, $files, $data_stream);
Please login to merge, or discard this patch.
modules/Psr7/Request.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
 	 *
19 19
 	 * @throws \cs\ExitException
20 20
 	 */
21
-	public static function init_from_psr7 ($Psr7_request) {
22
-		++System_request::$id;
21
+	public static function init_from_psr7 ($Psr7_request) {++System_request::$id;
23 22
 		$System_request = System_request::instance();
24 23
 		self::from_psr7_server($System_request, $Psr7_request);
25 24
 		self::from_psr7_query($System_request, $Psr7_request);
Please login to merge, or discard this patch.
core/traits/App/Router/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 				return true;
109 109
 			}
110 110
 		);
111
-		$methods   = _strtoupper(_substr($methods, strlen($method_name) + 1));
111
+		$methods = _strtoupper(_substr($methods, strlen($method_name) + 1));
112 112
 		natcasesort($methods);
113 113
 		return array_values($methods);
114 114
 	}
Please login to merge, or discard this patch.
modules/Blockchain_payment/admin/transactions.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 								date($L->{$time - $transaction['created'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['created'])
83 83
 							)
84 84
 							: '-';
85
-						$paid      = $transaction['paid']
85
+						$paid = $transaction['paid']
86 86
 							? $L->to_locale(
87 87
 								date($L->{$time - $transaction['paid'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['paid'])
88 88
 							)
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
 							: '-';
95 95
 						$username  = User::instance()->username($transaction['user']);
96 96
 						$class     =
97
-							$transaction['confirmed'] ? 'cs-block-success.cs-text-success' :
98
-								($transaction['paid'] ? 'cs-block-warning.cs-text-warning' : 'cs-block-error.cs-text-error');
97
+							$transaction['confirmed'] ? 'cs-block-success.cs-text-success' : ($transaction['paid'] ? 'cs-block-warning.cs-text-warning' : 'cs-block-error.cs-text-error');
99 98
 						$tag       = "td.$class";
100 99
 						return [
101 100
 							[
Please login to merge, or discard this patch.
service_scripts/make_php_code_coverage_phar.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 Phar::mapPhar('php-code-coverage.phar');
13 13
 require_once 'phar://php-code-coverage.phar/autoload.php';
14 14
 __HALT_COMPILER();
15
-STUB
15
+stub
16 16
 );
17 17
 $phar->stopBuffering();
Please login to merge, or discard this patch.