@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $row = $this->prepareVendor($row); |
| 268 | 268 | |
| 269 | 269 | if ($row['deliveryWorkDays']) { |
| 270 | - $row['deliveryWorkDays'] = (int) $row['deliveryWorkDays']; |
|
| 270 | + $row['deliveryWorkDays'] = (int)$row['deliveryWorkDays']; |
|
| 271 | 271 | } else { |
| 272 | 272 | $row['deliveryWorkDays'] = null; |
| 273 | 273 | } |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | $row['attributes'][Product::ATTRIBUTE_UNIT] = $unitMapper->getConnectUnit($row['attributes'][Product::ATTRIBUTE_UNIT]); |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | - $intRefQuantity = (int) $row['attributes'][Product::ATTRIBUTE_REFERENCE_QUANTITY]; |
|
| 293 | + $intRefQuantity = (int)$row['attributes'][Product::ATTRIBUTE_REFERENCE_QUANTITY]; |
|
| 294 | 294 | if ($row['attributes'][Product::ATTRIBUTE_REFERENCE_QUANTITY] - $intRefQuantity <= 0.0001) { |
| 295 | 295 | $row['attributes'][Product::ATTRIBUTE_REFERENCE_QUANTITY] = $intRefQuantity; |
| 296 | 296 | } |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | |
| 376 | 376 | public function getUrlForProduct($productId, $shopId = null) |
| 377 | 377 | { |
| 378 | - $shopId = (int) $shopId; |
|
| 378 | + $shopId = (int)$shopId; |
|
| 379 | 379 | $url = $this->baseProductUrl . $productId; |
| 380 | 380 | if ($shopId > 0) { |
| 381 | 381 | $url = $url . '/shId/' . $shopId; |
@@ -415,19 +415,19 @@ discard block |
||
| 415 | 415 | array_filter( |
| 416 | 416 | array_combine( |
| 417 | 417 | array_map( |
| 418 | - function ($mapping) { |
|
| 418 | + function($mapping) { |
|
| 419 | 419 | return $mapping['shopwareAttributeKey']; |
| 420 | 420 | }, |
| 421 | 421 | $mappings |
| 422 | 422 | ), |
| 423 | 423 | array_map( |
| 424 | - function ($mapping) { |
|
| 424 | + function($mapping) { |
|
| 425 | 425 | return $mapping['attributeKey']; |
| 426 | 426 | }, |
| 427 | 427 | $mappings |
| 428 | 428 | ) |
| 429 | 429 | ), |
| 430 | - function ($mapping) { |
|
| 430 | + function($mapping) { |
|
| 431 | 431 | return strlen($mapping['shopwareAttributeKey']) > 0 && strlen($mapping['attributeKey']) > 0; |
| 432 | 432 | } |
| 433 | 433 | ), |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | { |
| 446 | 446 | $result = $this->manager->getConnection()->fetchColumn( |
| 447 | 447 | 'SELECT a.configurator_set_id FROM s_articles a WHERE a.id = ?', |
| 448 | - [(int) $productId] |
|
| 448 | + [(int)$productId] |
|
| 449 | 449 | ); |
| 450 | 450 | |
| 451 | 451 | return $result > 0; |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | if ($price['to'] == 'beliebig') { |
| 467 | 467 | $clonePrice['to'] = PriceRange::ANY; |
| 468 | 468 | } else { |
| 469 | - $clonePrice['to'] = (int) $price['to']; |
|
| 469 | + $clonePrice['to'] = (int)$price['to']; |
|
| 470 | 470 | } |
| 471 | 471 | |
| 472 | 472 | $priceRanges[] = new PriceRange($clonePrice); |