Completed
Pull Request — master (#366)
by Christian
03:32
created
Components/ProductQuery/LocalProductQuery.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         $row = $this->prepareVendor($row);
266 266
 
267 267
         if ($row['deliveryWorkDays']) {
268
-            $row['deliveryWorkDays'] = (int) $row['deliveryWorkDays'];
268
+            $row['deliveryWorkDays'] = (int)$row['deliveryWorkDays'];
269 269
         } else {
270 270
             $row['deliveryWorkDays'] = null;
271 271
         }
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
                 $row['attributes']['unit'] = $unitMapper->getConnectUnit($row['attributes']['unit']);
289 289
             }
290 290
 
291
-            $intRefQuantity = (int) $row['attributes']['ref_quantity'];
291
+            $intRefQuantity = (int)$row['attributes']['ref_quantity'];
292 292
             if ($row['attributes']['ref_quantity'] - $intRefQuantity <= 0.0001) {
293 293
                 $row['attributes']['ref_quantity'] = $intRefQuantity;
294 294
             }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 
365 365
     public function getUrlForProduct($productId, $shopId = null)
366 366
     {
367
-        $shopId = (int) $shopId;
367
+        $shopId = (int)$shopId;
368 368
         $url = $this->baseProductUrl . $productId;
369 369
         if ($shopId > 0) {
370 370
             $url = $url . '/shId/' . $shopId;
@@ -404,19 +404,19 @@  discard block
 block discarded – undo
404 404
             array_filter(
405 405
                 array_combine(
406 406
                     array_map(
407
-                        function ($mapping) {
407
+                        function($mapping) {
408 408
                             return $mapping['shopwareAttributeKey'];
409 409
                         },
410 410
                         $mappings
411 411
                     ),
412 412
                     array_map(
413
-                        function ($mapping) {
413
+                        function($mapping) {
414 414
                             return $mapping['attributeKey'];
415 415
                         },
416 416
                         $mappings
417 417
                     )
418 418
                 ),
419
-                function ($mapping) {
419
+                function($mapping) {
420 420
                     return strlen($mapping['shopwareAttributeKey']) > 0 && strlen($mapping['attributeKey']) > 0;
421 421
                 }
422 422
             ),
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
     {
435 435
         $result = $this->manager->getConnection()->fetchColumn(
436 436
             'SELECT a.configurator_set_id FROM s_articles a WHERE a.id = ?',
437
-            [(int) $productId]
437
+            [(int)$productId]
438 438
         );
439 439
 
440 440
         return $result > 0;
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
             if ($price['to'] == 'beliebig') {
456 456
                 $clonePrice['to'] = PriceRange::ANY;
457 457
             } else {
458
-                $clonePrice['to'] = (int) $price['to'];
458
+                $clonePrice['to'] = (int)$price['to'];
459 459
             }
460 460
 
461 461
             $priceRanges[] = new PriceRange($clonePrice);
Please login to merge, or discard this patch.