@@ -137,7 +137,7 @@ |
||
137 | 137 | /** |
138 | 138 | * Fetches the mapping for the given object including the mapping of superclasses |
139 | 139 | * |
140 | - * @param object $object |
|
140 | + * @param string $clazz |
|
141 | 141 | * @return \StingerSoft\EntitySearchBundle\Services\string[string] |
142 | 142 | */ |
143 | 143 | protected function getMapping($clazz) { |
@@ -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 | } |