Completed
Push — master ( 095dae...3fba9f )
by Nazar
05:39
created
modules/Shop/Items.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 	const DEFAULT_IMAGE = 'components/modules/Shop/includes/img/no-image.svg';
57 57
 
58
-	protected $data_model                  = [
58
+	protected $data_model = [
59 59
 		'id'         => 'int',
60 60
 		'date'       => 'int',
61 61
 		'category'   => 'int',
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 				'string'  => '',
444 444
 				'text'    => ''
445 445
 			];
446
-			$lang       = '';
446
+			$lang = '';
447 447
 			switch ($this->attribute_type_to_value_field($attribute_data['type'])) {
448 448
 				case 'numeric_value':
449 449
 					$value_type['numeric'] = $value;
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -286,17 +286,20 @@
 block discarded – undo
286 286
 		$where        = [];
287 287
 		$where_params = [];
288 288
 		foreach ($search_parameters as $key => $details) {
289
-			if (isset($this->data_model[$key])) { // Property
289
+			if (isset($this->data_model[$key])) {
290
+// Property
290 291
 				$where[]        = "`i`.`$key` = '%s'";
291 292
 				$where_params[] = $details;
292
-			} elseif (is_numeric($key)) { // Tag
293
+			} elseif (is_numeric($key)) {
294
+// Tag
293 295
 				$joins .=
294 296
 					"INNER JOIN `{$this->table}_tags` AS `t`
295 297
 					ON
296 298
 						`i`.`id`	= `t`.`id` AND
297 299
 						`t`.`tag`	= '%s'";
298 300
 				$where_params[] = $details;
299
-			} else { // Attribute
301
+			} else {
302
+// Attribute
300 303
 				$field = @$this->attribute_type_to_value_field($Attributes->get($key)['type']);
301 304
 				if (!$field || empty($details)) {
302 305
 					continue;
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	use
26 26
 		CRUD,
27 27
 		Singleton;
28
-	protected $data_model                  = [
28
+	protected $data_model = [
29 29
 		'id'       => 'int:0',
30 30
 		'user'     => 'int:0',
31 31
 		'date'     => 'int:0',
Please login to merge, or discard this patch.
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.
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.
modules/Composer/cli/Controller.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.
modules/Composer/Composer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 						$verbosity      => true
121 121
 					]
122 122
 				);
123
-				$output             = new Output;
123
+				$output = new Output;
124 124
 				$output->set_stream(fopen("$storage/last_execution.log", 'w'));
125 125
 				$application->setAutoExit(false);
126 126
 				$status_code = $application->run($input, $output);
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 			'repositories' => [],
192 192
 			'require'      => []
193 193
 		];
194
-		$Config   = Config::instance();
194
+		$Config = Config::instance();
195 195
 		foreach (array_keys($Config->components['modules']) as $module) {
196 196
 			if (
197 197
 				$module == $component_name &&
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 		if (!$package['require']) {
267 267
 			return;
268 268
 		}
269
-		$composer['repositories'][]         = [
269
+		$composer['repositories'][] = [
270 270
 			'type'    => 'package',
271 271
 			'package' => $package
272 272
 		];
Please login to merge, or discard this patch.
core/classes/Request/File_stream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 */
52 52
 	function stream_read ($length) {
53 53
 		fseek($this->stream, $this->position);
54
-		$bytes          = fread($this->stream, $length);
54
+		$bytes = fread($this->stream, $length);
55 55
 		$this->position += strlen($bytes);
56 56
 		return $bytes;
57 57
 	}
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.