Passed
Push — master ( 8aa591...099ac9 )
by Anthony
02:04
created
EventListener/GuidAwareListener.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,20 +5,17 @@
 block discarded – undo
5 5
 use Symfony\Component\DependencyInjection\ContainerInterface;
6 6
 use Ramsey\Uuid\Uuid;
7 7
 
8
-class GuidAwareListener
9
-{
8
+class GuidAwareListener {
10 9
 	/**
11 10
 	 * @var ContainerInterface
12 11
 	 */
13 12
 	private $container;
14 13
 	
15
-	public function __construct(ContainerInterface $container)
16
-	{
14
+	public function __construct(ContainerInterface $container) {
17 15
 		$this->container = $container;
18 16
 	}
19 17
 	
20
-	public function prePersist($entity)
21
-	{
18
+	public function prePersist($entity) {
22 19
 		if ($entity->getGuid() === null) {
23 20
 			$entity->setGuid((string)Uuid::uuid4());
24 21
 		}
Please login to merge, or discard this patch.