Completed
Push — master ( c740cf...e24aa2 )
by Tim
13s
created
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.
tests/Observers/CatalogAttributeObserverTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 
63 63
         // mock the attribute bunch processor
64 64
         $this->mockBunchProcessor = $this->getMockBuilder('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface')
65
-                                         ->setMethods(get_class_methods('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface'))
66
-                                         ->getMock();
65
+                                            ->setMethods(get_class_methods('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface'))
66
+                                            ->getMock();
67 67
 
68 68
         // the observer instance we want to test
69 69
         $this->observer = new CatalogAttributeObserver($this->mockBunchProcessor);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                         array(ColumnKeys::IS_FILTERABLE_IN_GRID),
117 117
                         array(ColumnKeys::SEARCH_WEIGHT),
118 118
                         array(ColumnKeys::ADDITIONAL_DATA)
119
-                     )
119
+                        )
120 120
                     ->willReturnOnConsecutiveCalls(
121 121
                         true,
122 122
                         false,
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
 
164 164
         // mock the method that persists the entity
165 165
         $this->mockBunchProcessor->expects($this->once())
166
-                                 ->method('persistCatalogAttribute')
167
-                                 ->with($expectedEntity)
168
-                                 ->willReturn(null);
166
+                                    ->method('persistCatalogAttribute')
167
+                                    ->with($expectedEntity)
168
+                                    ->willReturn(null);
169 169
 
170 170
         // invoke the handle method
171 171
         $this->assertSame($row, $this->observer->handle($mockSubject));
Please login to merge, or discard this patch.
tests/Observers/CatalogAttributeUpdateObserverTest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 
63 63
         // mock the attribute bunch processor
64 64
         $this->mockBunchProcessor = $this->getMockBuilder('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface')
65
-                                         ->setMethods(get_class_methods('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface'))
66
-                                         ->getMock();
65
+                                            ->setMethods(get_class_methods('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface'))
66
+                                            ->getMock();
67 67
 
68 68
         // the observer instance we want to test
69 69
         $this->observer = new CatalogAttributeUpdateObserver($this->mockBunchProcessor);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                         array(ColumnKeys::IS_FILTERABLE_IN_GRID),
117 117
                         array(ColumnKeys::SEARCH_WEIGHT),
118 118
                         array(ColumnKeys::ADDITIONAL_DATA)
119
-                     )
119
+                        )
120 120
                     ->willReturnOnConsecutiveCalls(
121 121
                         true,
122 122
                         false,
@@ -189,14 +189,14 @@  discard block
 block discarded – undo
189 189
 
190 190
         // mock the method that loads the existing entity
191 191
         $this->mockBunchProcessor->expects($this->once())
192
-                                 ->method('loadCatalogAttribute')
193
-                                 ->with($lastAttributeId)
194
-                                 ->willReturn($existingEntity);
192
+                                    ->method('loadCatalogAttribute')
193
+                                    ->with($lastAttributeId)
194
+                                    ->willReturn($existingEntity);
195 195
         // mock the method that persists the entity
196 196
         $this->mockBunchProcessor->expects($this->once())
197
-                                 ->method('persistCatalogAttribute')
198
-                                 ->with($expectedEntity)
199
-                                 ->willReturn(null);
197
+                                    ->method('persistCatalogAttribute')
198
+                                    ->with($expectedEntity)
199
+                                    ->willReturn(null);
200 200
 
201 201
         // invoke the handle method
202 202
         $this->assertSame($row, $this->observer->handle($mockSubject));
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                         array(ColumnKeys::SEARCH_WEIGHT),
306 306
                         array(ColumnKeys::ADDITIONAL_DATA),
307 307
                         array(ColumnKeys::ADDITIONAL_DATA)
308
-                     )
308
+                        )
309 309
                     ->willReturnOnConsecutiveCalls(
310 310
                         0,
311 311
                         1,
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
                         22,
355 355
                         23,
356 356
                         23
357
-                     );
357
+                        );
358 358
         $mockSubject->expects($this->once())
359 359
                     ->method('hasBeenProcessed')
360 360
                     ->with($attributeCode)
@@ -437,14 +437,14 @@  discard block
 block discarded – undo
437 437
 
438 438
         // mock the method that loads the existing entity
439 439
         $this->mockBunchProcessor->expects($this->once())
440
-                                 ->method('loadCatalogAttribute')
441
-                                 ->with($lastAttributeId)
442
-                                 ->willReturn($existingEntity);
440
+                                    ->method('loadCatalogAttribute')
441
+                                    ->with($lastAttributeId)
442
+                                    ->willReturn($existingEntity);
443 443
         // mock the method that persists the entity
444 444
         $this->mockBunchProcessor->expects($this->once())
445
-                                 ->method('persistCatalogAttribute')
446
-                                 ->with($expectedEntity)
447
-                                 ->willReturn(null);
445
+                                    ->method('persistCatalogAttribute')
446
+                                    ->with($expectedEntity)
447
+                                    ->willReturn(null);
448 448
 
449 449
         // invoke the handle method
450 450
         $this->assertSame($row, $this->observer->handle($mockSubject));
Please login to merge, or discard this patch.