@@ -365,9 +365,7 @@ |
||
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; |
@@ -45,7 +45,7 @@ |
||
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'], |
@@ -280,7 +280,7 @@ |
||
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; |
@@ -93,7 +93,7 @@ |
||
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 | } |