@@ -105,12 +105,14 @@ |
||
| 105 | 105 | * @see \StingerSoft\EntitySearchBundle\Services\Mapping\EntityToDocumentMapperInterface::createDocument() |
| 106 | 106 | */ |
| 107 | 107 | public function createDocument(ObjectManager $manager, $object) { |
| 108 | - if(!$this->isIndexable($object)) |
|
| 109 | - return false; |
|
| 108 | + if(!$this->isIndexable($object)) { |
|
| 109 | + return false; |
|
| 110 | + } |
|
| 110 | 111 | $document = $this->getSearchService($manager)->createEmptyDocumentFromEntity($object); |
| 111 | 112 | $index = $this->fillDocument($document, $object); |
| 112 | - if($index == false) |
|
| 113 | - return false; |
|
| 113 | + if($index == false) { |
|
| 114 | + return false; |
|
| 115 | + } |
|
| 114 | 116 | |
| 115 | 117 | return $document; |
| 116 | 118 | } |