@@ -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 |
@@ -137,16 +137,16 @@ discard block |
||
137 | 137 | ->willReturn($row); |
138 | 138 | $mockSubject->expects($this->any()) |
139 | 139 | ->method('hasHeader') |
140 | - ->willReturnCallback(function ($key) use ($headers) { |
|
140 | + ->willReturnCallback(function($key) use ($headers) { |
|
141 | 141 | return array_key_exists($key, $headers); |
142 | 142 | }); |
143 | 143 | $mockSubject->expects($this->any()) |
144 | 144 | ->method('getHeader') |
145 | - ->willReturnCallback(function ($key) use ($headers) { |
|
145 | + ->willReturnCallback(function($key) use ($headers) { |
|
146 | 146 | if (array_key_exists($key, $headers)) { |
147 | 147 | return $headers[$key]; |
148 | 148 | } |
149 | - throw new \InvalidArgumentException(sprintf('Header %s is not available', $key));; |
|
149 | + throw new \InvalidArgumentException(sprintf('Header %s is not available', $key)); ; |
|
150 | 150 | }); |
151 | 151 | $mockSubject->expects($this->once()) |
152 | 152 | ->method('hasBeenProcessed') |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | // mock the entity merger method |
212 | 212 | $this->mockEntityMerger->expects($this->any()) |
213 | 213 | ->method('merge') |
214 | - ->willReturnCallback(function ($observer, $entity, $attr) use ($headers) { |
|
214 | + ->willReturnCallback(function($observer, $entity, $attr) use ($headers) { |
|
215 | 215 | foreach (array_keys($attr) as $key) { |
216 | 216 | if (isset($headers[$key])) { |
217 | 217 | continue; |
@@ -331,16 +331,16 @@ discard block |
||
331 | 331 | ->willReturn($lastAttributeId = 1001); |
332 | 332 | $mockSubject->expects($this->any()) |
333 | 333 | ->method('hasHeader') |
334 | - ->willReturnCallback(function ($key) use ($headers) { |
|
334 | + ->willReturnCallback(function($key) use ($headers) { |
|
335 | 335 | return array_key_exists($key, $headers); |
336 | 336 | }); |
337 | 337 | $mockSubject->expects($this->any()) |
338 | 338 | ->method('getHeader') |
339 | - ->willReturnCallback(function ($key) use ($headers) { |
|
339 | + ->willReturnCallback(function($key) use ($headers) { |
|
340 | 340 | if (array_key_exists($key, $headers)) { |
341 | 341 | return $headers[$key]; |
342 | 342 | } |
343 | - throw new \InvalidArgumentException(sprintf('Header %s is not available', $key));; |
|
343 | + throw new \InvalidArgumentException(sprintf('Header %s is not available', $key)); ; |
|
344 | 344 | }); |
345 | 345 | |
346 | 346 | // initialize the existing entity |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | // mock the entity merger method |
425 | 425 | $this->mockEntityMerger->expects($this->any()) |
426 | 426 | ->method('merge') |
427 | - ->willReturnCallback(function ($observer, $entity, $attr) use ($headers) { |
|
427 | + ->willReturnCallback(function($observer, $entity, $attr) use ($headers) { |
|
428 | 428 | foreach (array_keys($attr) as $key) { |
429 | 429 | if (isset($headers[$key])) { |
430 | 430 | continue; |