@@ -20,7 +20,7 @@ |
||
| 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 | } |
@@ -5,20 +5,17 @@ |
||
| 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 | } |