Completed
Push — master ( 36b55b...fa7cf7 )
by Florian
03:13
created
Services/DoctrineListener.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,9 @@  discard block
 block discarded – undo
73 73
 	 * @param LifecycleEventArgs $args        	
74 74
 	 */
75 75
 	public function postPersist(LifecycleEventArgs $args) {
76
-		if(!$this->enableIndexing) return;
76
+		if(!$this->enableIndexing) {
77
+			return;
78
+		}
77 79
 		$this->updateEntity($args->getObject(), $args->getObjectManager());
78 80
 	}
79 81
 
@@ -90,7 +92,9 @@  discard block
 block discarded – undo
90 92
 	 * @param LifecycleEventArgs $args        	
91 93
 	 */
92 94
 	public function preRemove(LifecycleEventArgs $args) {
93
-		if(!$this->enableIndexing) return;
95
+		if(!$this->enableIndexing) {
96
+			return;
97
+		}
94 98
 		$this->removeEntity($args->getObject(), $args->getObjectManager());
95 99
 	}
96 100
 
@@ -100,7 +104,9 @@  discard block
 block discarded – undo
100 104
 	 * @param LifecycleEventArgs $args        	
101 105
 	 */
102 106
 	public function postUpdate(LifecycleEventArgs $args) {
103
-		if(!$this->enableIndexing) return;
107
+		if(!$this->enableIndexing) {
108
+			return;
109
+		}
104 110
 		$this->updateEntity($args->getObject(), $args->getObjectManager());
105 111
 	}
106 112
 
Please login to merge, or discard this patch.