@@ -203,7 +203,7 @@ |
||
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 | /** |
@@ -76,7 +76,7 @@ |
||
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 |
@@ -61,7 +61,7 @@ |
||
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 |
@@ -58,13 +58,13 @@ |
||
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 |
@@ -47,7 +47,7 @@ |
||
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 |
@@ -86,8 +86,8 @@ |
||
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 |