@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | |
460 | 460 | public function entitiesWithInvalidIdentifiersProvider() |
461 | 461 | { |
462 | - $firstNullString = new EntityWithCompositeStringIdentifier(); |
|
462 | + $firstNullString = new EntityWithCompositeStringIdentifier(); |
|
463 | 463 | |
464 | 464 | $firstNullString->id2 = uniqid('id2', true); |
465 | 465 | |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | ->eventManager |
519 | 519 | ->expects(self::any()) |
520 | 520 | ->method('hasListeners') |
521 | - ->willReturnCallback(function ($eventName) { |
|
521 | + ->willReturnCallback(function($eventName) { |
|
522 | 522 | return $eventName === Events::prePersist; |
523 | 523 | }); |
524 | 524 | $this |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | ->method('dispatchEvent') |
528 | 528 | ->with( |
529 | 529 | self::anything(), |
530 | - self::callback(function (LifecycleEventArgs $args) use ($entity, $generatedFieldValue) { |
|
530 | + self::callback(function(LifecycleEventArgs $args) use ($entity, $generatedFieldValue) { |
|
531 | 531 | /* @var $object EntityWithRandomlyGeneratedField */ |
532 | 532 | $object = $args->getObject(); |
533 | 533 | |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | ->eventManager |
568 | 568 | ->expects(self::any()) |
569 | 569 | ->method('hasListeners') |
570 | - ->willReturnCallback(function ($eventName) { |
|
570 | + ->willReturnCallback(function($eventName) { |
|
571 | 571 | return $eventName === Events::prePersist; |
572 | 572 | }); |
573 | 573 | $this->eventManager->expects(self::never())->method('dispatchEvent'); |
@@ -606,11 +606,11 @@ discard block |
||
606 | 606 | |
607 | 607 | self::assertSame( |
608 | 608 | $entity1, |
609 | - $this->_unitOfWork->tryGetById(['id1' => '', 'id2' => ' '], EntityWithCompositeStringIdentifier::class) |
|
609 | + $this->_unitOfWork->tryGetById(['id1' => '', 'id2' => ' '], EntityWithCompositeStringIdentifier::class) |
|
610 | 610 | ); |
611 | 611 | self::assertSame( |
612 | 612 | $entity2, |
613 | - $this->_unitOfWork->tryGetById(['id1' => ' ', 'id2' => ''], EntityWithCompositeStringIdentifier::class) |
|
613 | + $this->_unitOfWork->tryGetById(['id1' => ' ', 'id2' => ''], EntityWithCompositeStringIdentifier::class) |
|
614 | 614 | ); |
615 | 615 | } |
616 | 616 |