Completed
Pull Request — master (#53)
by Marcus
01:42
created
src/Subjects/BunchSubject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
      */
204 204
     public function preLoadAttributeId(array $attribute)
205 205
     {
206
-        $this->preLoadedAttributeIds[$attribute[MemberNames::ATTRIBUTE_CODE]]= $attribute[MemberNames::ATTRIBUTE_ID];
206
+        $this->preLoadedAttributeIds[$attribute[MemberNames::ATTRIBUTE_CODE]] = $attribute[MemberNames::ATTRIBUTE_ID];
207 207
     }
208 208
 
209 209
     /**
Please login to merge, or discard this patch.
src/Actions/Processors/CatalogAttributeUpdateProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             unset($keys[array_search(EntityStatus::MEMBER_NAME, $keys, true)]);
77 77
 
78 78
             // prepare the SET part of the SQL statement
79
-            array_walk($keys, function (&$value, $key) {
79
+            array_walk($keys, function(&$value, $key) {
80 80
                 $value = sprintf('%s=:%s', $value, $value);
81 81
             });
82 82
 
Please login to merge, or discard this patch.
src/Observers/AttributeOptionValueExportObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $artefacts = array();
62 62
 
63 63
         // load the attribute option values for the custom store views
64
-        $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function ($value) {
64
+        $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function($value) {
65 65
             return $this->explode($value, $this->getMultipleFieldDelimiter());
66 66
         });
67 67
 
Please login to merge, or discard this patch.
src/Observers/AttributeOptionExportObserver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@
 block discarded – undo
58 58
         $artefacts = array();
59 59
 
60 60
         // load the attribute option values/positions
61
-        $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function ($value) {
61
+        $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function($value) {
62 62
             return $this->explode($value, $this->getMultipleFieldDelimiter());
63 63
         });
64
-        $attributeOptionSortOrder = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SORT_ORDER, array(), function ($value) {
64
+        $attributeOptionSortOrder = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SORT_ORDER, array(), function($value) {
65 65
             return $this->explode($value, $this->getMultipleFieldDelimiter());
66 66
         });
67
-        $attributeOptionSwatch = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SWATCH, array(), function ($value) {
67
+        $attributeOptionSwatch = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SWATCH, array(), function($value) {
68 68
             return $this->explode($value, $this->getMultipleValueDelimiter());
69 69
         });
70 70
 
Please login to merge, or discard this patch.
src/Observers/AttributeOptionSwatchFileUploadObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         ));
48 48
 
49 49
         // skip this step for color swatches and text swatches
50
-        if (isset($attributeOptionSwatch[MemberNames::TYPE]) &&  $attributeOptionSwatch[MemberNames::TYPE] === SwatchTypes::IMAGE) {
50
+        if (isset($attributeOptionSwatch[MemberNames::TYPE]) && $attributeOptionSwatch[MemberNames::TYPE] === SwatchTypes::IMAGE) {
51 51
             // upload the file to the configured directory
52 52
             $imagePath = $this->getSubject()->uploadFile($attributeOptionSwatch[MemberNames::VALUE]);
53 53
 
Please login to merge, or discard this patch.
src/Loaders/RawEntityLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
86 86
             // load the columns from the metadata
87 87
             $columns = array_filter(
88 88
                 $columnMetadataLoader->load($entityType),
89
-                function ($value) {
90
-                    return $value['Key'] !== 'PRI' && $value['Null'] === 'NO' ;
89
+                function($value) {
90
+                    return $value['Key'] !== 'PRI' && $value['Null'] === 'NO';
91 91
                 }
92 92
             );
93 93
             // initialize the raw entities and their default values, if available
Please login to merge, or discard this patch.