Passed
Push — master ( 8aa591...099ac9 )
by Anthony
02:04
created
EventListener/GuidAwareListener.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	public function prePersist($entity)
21 21
 	{
22 22
 		if ($entity->getGuid() === null) {
23
-			$entity->setGuid((string)Uuid::uuid4());
23
+			$entity->setGuid((string) Uuid::uuid4());
24 24
 		}
25 25
 	}
26 26
 }
Please login to merge, or discard this 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.