Passed
Push — developer ( 876bf5...ef1ee6 )
by Mariusz
23:26
created
app/Integrations/WooCommerce/Synchronizer/Maps/Base.php 1 patch
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -365,9 +365,7 @@
 block discarded – undo
365 365
 	protected function convert($value, array $field, bool $fromApi)
366 366
 	{
367 367
 		switch ($field[$fromApi ? 'crmType' : 'apiType'] ?? 'string') {
368
-			default:
369
-			case 'string':
370
-				$value = (string) $value;
368
+			default : case 'string' : $value = (string) $value;
371 369
 				break;
372 370
 			case 'float':
373 371
 				$value = (float) $value;
Please login to merge, or discard this patch.
app/Integrations/WooCommerce/Synchronizer/Maps/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	];
46 46
 	/** {@inheritdoc} */
47 47
 	protected $invFieldMap = [
48
-		'name' => ['name' => 'product_id', 'fn' => 'findProduct', 'moduleName' => 'Products',  'direction' => 'yf'],
48
+		'name' => ['name' => 'product_id', 'fn' => 'findProduct', 'moduleName' => 'Products', 'direction' => 'yf'],
49 49
 		'qty' => 'quantity',
50 50
 		'price' => 'price',
51 51
 		'taxparam' => ['name' => 'total_tax', 'fn' => 'convertTax', 'direction' => 'yf'],
Please login to merge, or discard this patch.
app/Integrations/WooCommerce/Synchronizer/Maps/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
 		$tags = [];
281 281
 		foreach (explode(\Vtiger_Multipicklist_UIType::SEPARATOR, $value) as $tag) {
282 282
 			if (isset($all[$tag])) {
283
-				$tags[] = ['id' => $all[$tag],  'name' => $tag];
283
+				$tags[] = ['id' => $all[$tag], 'name' => $tag];
284 284
 			}
285 285
 		}
286 286
 		return $tags;
Please login to merge, or discard this patch.
app/Integrations/WooCommerce/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 	{
94 94
 		$dbCommand = \App\Db::getInstance()->createCommand();
95 95
 		if (false !== $name) {
96
-			$data = ['name' => "{$type}_last_scan_{$name}",	'value' => $id];
96
+			$data = ['name' => "{$type}_last_scan_{$name}", 'value' => $id];
97 97
 		} else {
98 98
 			$data = ['name' => $type . '_start_scan_date', 'value' => date('Y-m-d H:i:s')];
99 99
 		}
Please login to merge, or discard this patch.