Completed
Push — master ( 0ea8fb...db8ca1 )
by Florian
09:33 queued 11s
created
Services/Mapping/EntityToDocumentMapper.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,12 +107,14 @@
 block discarded – undo
107 107
 	 * @see \StingerSoft\EntitySearchBundle\Services\Mapping\EntityToDocumentMapperInterface::createDocument()
108 108
 	 */
109 109
 	public function createDocument(ObjectManager $manager, object $object) : ?Document {
110
-		if(!$this->isIndexable($object))
111
-			return null;
110
+		if(!$this->isIndexable($object)) {
111
+					return null;
112
+		}
112 113
 		$document = $this->searchService->createEmptyDocumentFromEntity($object);
113 114
 		$index = $this->fillDocument($document, $object);
114
-		if($index === false)
115
-			return null;
115
+		if($index === false) {
116
+					return null;
117
+		}
116 118
 		
117 119
 		return $document;
118 120
 	}
Please login to merge, or discard this patch.
Services/DoctrineListener.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@
 block discarded – undo
131 131
 	 * @param LifecycleEventArgs $args
132 132
 	 */
133 133
 	public function postUpdate(LifecycleEventArgs $args): void {
134
-		if(!$this->enableIndexing) return;
134
+		if(!$this->enableIndexing) {
135
+			return;
136
+		}
135 137
 		$this->updateEntity($args->getObject(), $args->getObjectManager());
136 138
 	}
137 139
 
Please login to merge, or discard this patch.
Services/AbstractSearchService.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
 	 * @required
53 53
 	 */
54 54
 	public function setObjectManager(ObjectManager $om): void {
55
-		if($this->objectManager)
56
-			return;
55
+		if($this->objectManager) {
56
+					return;
57
+		}
57 58
 		$this->objectManager = $om;
58 59
 	}
59 60
 
Please login to merge, or discard this patch.