Passed
Push — developer ( 418633...1ee7e4 )
by Mariusz
37:21 queued 18:10
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.
modules/Settings/LayoutEditor/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	public function getAddSupportedFieldTypes()
86 86
 	{
87 87
 		return [
88
-			'Text', 'Decimal', 'Integer',  'Currency',  'Percent', 'AdvPercentage', 'Date', 'Time', 'DateTime', 'RangeTime', 'Phone', 'Email', 'MultiEmail', 'MultiDomain', 'Picklist', 'MultiSelectCombo', 'MultipicklistTags', 'Country', 'URL', 'Checkbox', 'TextArea', 'Related1M', 'MultiReference', 'Editor', 'Tree', 'CategoryMultipicklist', 'Image', 'MultiImage',  'MultiAttachment', 'MultiReferenceValue', 'ServerAccess', 'Skype', 'Twitter', 'Token', 'Smtp', 'MapCoordinates', 'Group',
88
+			'Text', 'Decimal', 'Integer', 'Currency', 'Percent', 'AdvPercentage', 'Date', 'Time', 'DateTime', 'RangeTime', 'Phone', 'Email', 'MultiEmail', 'MultiDomain', 'Picklist', 'MultiSelectCombo', 'MultipicklistTags', 'Country', 'URL', 'Checkbox', 'TextArea', 'Related1M', 'MultiReference', 'Editor', 'Tree', 'CategoryMultipicklist', 'Image', 'MultiImage', 'MultiAttachment', 'MultiReferenceValue', 'ServerAccess', 'Skype', 'Twitter', 'Token', 'Smtp', 'MapCoordinates', 'Group',
89 89
 		];
90 90
 	}
91 91
 
Please login to merge, or discard this patch.
modules/Settings/Groups/views/GetData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 						break;
99 99
 					case 'members':
100 100
 						foreach ($value as $memberTypeId) {
101
-							[$type,  $memberId] = explode(':', $memberTypeId);
101
+							[$type, $memberId] = explode(':', $memberTypeId);
102 102
 							switch ($type) {
103 103
 								case 'Users':
104 104
 									$users[] = (int) $memberId;
Please login to merge, or discard this patch.
modules/Vtiger/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -649,7 +649,7 @@
 block discarded – undo
649 649
 				}
650 650
 			}
651 651
 		}
652
-		uksort($quickCreateFieldList, function ($a, $b) use ($quickCreateFieldList) {
652
+		uksort($quickCreateFieldList, function($a, $b) use ($quickCreateFieldList) {
653 653
 			if ($quickCreateFieldList[$a]->get('quicksequence') === $quickCreateFieldList[$b]->get('quicksequence')) {
654 654
 				return 0;
655 655
 			}
Please login to merge, or discard this patch.
modules/ModTracker/handlers/ModTrackerHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 */
141 141
 	public function entityAfterLinkForSource(App\EventHandler $eventHandler)
142 142
 	{
143
-		['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId,'destinationModule' => $destinationModule,'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams();
143
+		['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId, 'destinationModule' => $destinationModule, 'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams();
144 144
 		if (!ModTracker::isTrackingEnabledForModule($destinationModule) || Vtiger_Relation_Model::getInstanceById($relationId)->isDirectRelation()) {
145 145
 			return false;
146 146
 		}
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	 */
183 183
 	public function entityAfterUnLinkForSource(App\EventHandler $eventHandler)
184 184
 	{
185
-		['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId,'destinationModule' => $destinationModule,'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams();
185
+		['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId, 'destinationModule' => $destinationModule, 'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams();
186 186
 		if (!ModTracker::isTrackingEnabledForModule($destinationModule) || Vtiger_Relation_Model::getInstanceById($relationId)->isDirectRelation()) {
187 187
 			return false;
188 188
 		}
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
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 	{
93 93
 		$dbCommand = \App\Db::getInstance()->createCommand();
94 94
 		if (null !== $name) {
95
-			$data = ['name' => "{$type}_last_{$name}",	'value' => $id];
95
+			$data = ['name' => "{$type}_last_{$name}", 'value' => $id];
96 96
 		} else {
97 97
 			$data = ['name' => $type . '_start_date', 'value' => date('Y-m-d H:i:s')];
98 98
 		}
Please login to merge, or discard this patch.
modules/Settings/WooCommerce/models/Activation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
 	 */
319 319
 	protected static function getWebserviceApps(): array
320 320
 	{
321
-		$row = (new \App\Db\Query())->from('w_#__servers')->where(['type' => 'WooCommerce',  'status' => 1])
321
+		$row = (new \App\Db\Query())->from('w_#__servers')->where(['type' => 'WooCommerce', 'status' => 1])
322 322
 			->one(\App\Db::getInstance('webservice')) ?: [];
323 323
 		if (!$row) {
324 324
 			return [];
Please login to merge, or discard this patch.