@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | public function postFlush(PostFlushEventArgs $eventArgs) { |
65 | - if($this->needsFlush) { |
|
65 | + if ($this->needsFlush) { |
|
66 | 66 | $this->needsFlush = false; |
67 | 67 | $eventArgs->getEntityManager()->flush(); |
68 | 68 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | protected function updateEntity($entity, ObjectManager $manager) { |
111 | 111 | $document = $this->getEntityToDocumentMapper()->createDocument($manager, $entity); |
112 | - if($document !== false) { |
|
112 | + if ($document !== false) { |
|
113 | 113 | $this->getSearchService($manager)->saveDocument($document); |
114 | 114 | $this->needsFlush = true; |
115 | 115 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | protected function removeEntity($entity, ObjectManager $manager) { |
123 | 123 | $document = $this->getEntityToDocumentMapper()->createDocument($manager, $entity); |
124 | - if($document !== false) { |
|
124 | + if ($document !== false) { |
|
125 | 125 | $this->getSearchService($manager)->removeDocument($document); |
126 | 126 | $this->needsFlush = true; |
127 | 127 | } |