Completed
Push — master ( 2f2f35...e5e78d )
by Florian
07:45
created
Services/Mapping/EntityToDocumentMapper.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,12 +105,14 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.