Completed
Push — master ( a1bdf1...43940b )
by Jonas
13s
created
Controllers/Backend/ConnectConfig.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
         $connectUnits = new Units();
722 722
         $connectUnitsArray = $connectUnits->getLocalizedUnits('de');
723 723
         $unitsArray = [];
724
-        $hideAssigned = (int) $this->Request()->getParam('hideAssignedUnits', 1);
724
+        $hideAssigned = (int)$this->Request()->getParam('hideAssignedUnits', 1);
725 725
 
726 726
         foreach ($this->getConfigComponent()->getUnitsMappings() as $connectUnit => $localUnit) {
727 727
             if ($hideAssigned == true && strlen($localUnit) > 0) {
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
     {
828 828
         $marketplaceGateway = $this->getFactory()->getMarketplaceGateway();
829 829
 
830
-        $mappings = array_map(function ($attribute) use ($marketplaceGateway) {
830
+        $mappings = array_map(function($attribute) use ($marketplaceGateway) {
831 831
             return [
832 832
                     'shopwareAttributeKey' => $attribute->getName(),
833 833
                     'shopwareAttributeLabel' => $attribute->getLabel(),
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
         }, array_values(
837 837
                 array_filter(
838 838
                     Shopware()->Models()->getRepository('Shopware\Models\Article\Element')->findAll(),
839
-                    function ($attribute) {
839
+                    function($attribute) {
840 840
                         return $attribute->getName() != 'connectProductDescription';
841 841
                     }
842 842
                 )
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
         $connection->beginTransaction();
954 954
 
955 955
         try {
956
-            $units = array_filter($this->getConfigComponent()->getUnitsMappings(), function ($unit) {
956
+            $units = array_filter($this->getConfigComponent()->getUnitsMappings(), function($unit) {
957 957
                 return strlen($unit) == 0;
958 958
             });
959 959
 
Please login to merge, or discard this patch.