Completed
Pull Request — master (#46)
by Walt
25:28 queued 05:28
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/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/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.