@@ -30,12 +30,12 @@ |
||
30 | 30 | $builder->resetModelTransformers(); |
31 | 31 | $builder->resetViewTransformers(); |
32 | 32 | |
33 | - if($options['multiple']) { |
|
34 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
33 | + if ($options['multiple']) { |
|
34 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
35 | 35 | $event->stopPropagation(); |
36 | 36 | }, 1); |
37 | 37 | } |
38 | - $builder->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) { |
|
38 | + $builder->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) { |
|
39 | 39 | $data = $event->getForm()->getExtraData(); |
40 | 40 | $event->setData(array_unique(array_merge($data, $event->getData()))); |
41 | 41 | }); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | class FacetSetAdapterTest extends \PHPUnit_Framework_TestCase { |
18 | 18 | |
19 | - public function testAddFacetValue(){ |
|
19 | + public function testAddFacetValue() { |
|
20 | 20 | $facets = new FacetSetAdapter(array()); |
21 | 21 | $this->assertCount(0, $facets); |
22 | 22 | $facets->addFacetValue(Document::FIELD_AUTHOR, 'Oliver Kotte'); |
@@ -26,13 +26,13 @@ discard block |
||
26 | 26 | $this->assertCount(1, $facets); |
27 | 27 | $this->assertCount(2, $facets->getFacet(Document::FIELD_AUTHOR)); |
28 | 28 | |
29 | - foreach($facets as $facetKey => $facetValues){ |
|
29 | + foreach ($facets as $facetKey => $facetValues) { |
|
30 | 30 | $this->assertEquals(Document::FIELD_AUTHOR, $facetKey); |
31 | 31 | $this->assertCount(2, $facetValues); |
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
35 | - public function testGetFacet(){ |
|
35 | + public function testGetFacet() { |
|
36 | 36 | $facets = new FacetSetAdapter(array()); |
37 | 37 | $this->assertCount(0, $facets); |
38 | 38 | $this->assertNull($facets->getFacet('NotExisting')); |