@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | ClassMetadata $sourceMetadata, |
| 105 | 105 | ClassMetadata $targetMetadata |
| 106 | 106 | ) { |
| 107 | - $methodName = 'get' . ucfirst($fieldName); |
|
| 107 | + $methodName = 'get'.ucfirst($fieldName); |
|
| 108 | 108 | |
| 109 | 109 | if (!method_exists($sourceEntity, $methodName)) { |
| 110 | 110 | $errorMessage = sprintf( |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * If we implement EntityInterface correctly we will never have a composite key. |
| 156 | 156 | */ |
| 157 | 157 | return isset($mapping['joinColumns'][0]['nullable']) |
| 158 | - ? (bool)$mapping['joinColumns'][0]['nullable'] |
|
| 158 | + ? (bool) $mapping['joinColumns'][0]['nullable'] |
|
| 159 | 159 | : false; |
| 160 | 160 | } |
| 161 | 161 | |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | $classMetadata->expects($this->once())->method('getName')->willReturn($entityName); |
| 349 | 349 | $targetMetadata->expects($this->once())->method('getName')->willReturn($mapping['targetEntity']); |
| 350 | 350 | |
| 351 | - $methodName = 'get' . ucfirst($mapping['fieldName']); |
|
| 351 | + $methodName = 'get'.ucfirst($mapping['fieldName']); |
|
| 352 | 352 | |
| 353 | 353 | $errorMessage = sprintf( |
| 354 | 354 | 'Failed to find required entity method \'%s::%s\'. The method is required for cascade operations ' |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | $classMetadata->expects($this->once())->method('getName')->willReturn($entityName); |
| 455 | 455 | $targetMetadata->expects($this->once())->method('getName')->willReturn($mapping['targetEntity']); |
| 456 | 456 | |
| 457 | - $methodName = 'get' . ucfirst($mapping['fieldName']); |
|
| 457 | + $methodName = 'get'.ucfirst($mapping['fieldName']); |
|
| 458 | 458 | |
| 459 | 459 | $errorMessage = sprintf( |
| 460 | 460 | 'The call to resolve entity of type \'%s\' from method call \'%s::%s\' failed: %s', |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | $this->dispatchEvent($this->createErrorEvent(EntityEventName::DELETE_COLLECTION_ERROR, $e)); |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | - return (int)$event->getParam('deleted', 0); |
|
| 191 | + return (int) $event->getParam('deleted', 0); |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | /** |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $entityId = 'FOO123'; |
| 126 | 126 | |
| 127 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 127 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 128 | 128 | $exceptionCode = 123; |
| 129 | 129 | $exception = new QueryServiceException($exceptionMessage, $exceptionCode); |
| 130 | 130 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | 'test' => 123, |
| 221 | 221 | ]; |
| 222 | 222 | |
| 223 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 223 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 224 | 224 | $exceptionCode = 456; |
| 225 | 225 | |
| 226 | 226 | $exception = new QueryServiceException($exceptionMessage, $exceptionCode); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $criteria = []; |
| 355 | 355 | $options = []; |
| 356 | 356 | |
| 357 | - $exceptionMessage = 'This is a foo test exception for ' . __FUNCTION__; |
|
| 357 | + $exceptionMessage = 'This is a foo test exception for '.__FUNCTION__; |
|
| 358 | 358 | $exceptionCode = 456; |
| 359 | 359 | $exception = new QueryServiceException($exceptionMessage, $exceptionCode); |
| 360 | 360 | |
@@ -188,7 +188,6 @@ |
||
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | 190 | * Assert that DateTimeFactoryException's are caught and rethrown as PersistenceException in __invoke() |
| 191 | - |
|
| 192 | 191 | * @throws PersistenceException |
| 193 | 192 | */ |
| 194 | 193 | public function testDateTimeFactoryFailureWillBeLoggedAndRethrownAsAPersistenceException(): void |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | ->method('hasId') |
| 224 | 224 | ->willReturn(false); |
| 225 | 225 | |
| 226 | - $exceptionMessage = 'Test exception message for ' . __FUNCTION__; |
|
| 226 | + $exceptionMessage = 'Test exception message for '.__FUNCTION__; |
|
| 227 | 227 | $exceptionCode = 456; |
| 228 | 228 | $exception = new \Error($exceptionMessage, $exceptionCode); |
| 229 | 229 | |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | ->with(EntityEventName::DELETE, $entity, $options) |
| 335 | 335 | ->willReturn($event); |
| 336 | 336 | |
| 337 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 337 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 338 | 338 | $exceptionCode = 123; |
| 339 | 339 | $exception = new EventListenerException($exceptionMessage, $exceptionCode); |
| 340 | 340 | |
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | 'The \'entity\' argument must be an object of type \'%s\'; \'%s\' provided in \'%s\'', |
| 650 | 650 | $this->entityName, |
| 651 | 651 | get_class($entity), |
| 652 | - PersistService::class . '::refresh' |
|
| 652 | + PersistService::class.'::refresh' |
|
| 653 | 653 | ) |
| 654 | 654 | ); |
| 655 | 655 | |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | /** @var EntityInterface&MockObject $entity */ |
| 674 | 674 | $entity = $this->createMock(EntityInterface::class); |
| 675 | 675 | |
| 676 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 676 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 677 | 677 | $exceptionCode = 987; |
| 678 | 678 | $exception = new \RuntimeException($exceptionMessage, $exceptionCode); |
| 679 | 679 | |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | $this->logger |
| 753 | 753 | ); |
| 754 | 754 | |
| 755 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 755 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 756 | 756 | $exceptionCode = 123; |
| 757 | 757 | $exception = new \RuntimeException($exceptionMessage, $exceptionCode); |
| 758 | 758 | |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | $this->logger |
| 801 | 801 | ); |
| 802 | 802 | |
| 803 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 803 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 804 | 804 | $exceptionCode = 123; |
| 805 | 805 | $exception = new \RuntimeException($exceptionMessage, $exceptionCode); |
| 806 | 806 | |
@@ -848,7 +848,7 @@ discard block |
||
| 848 | 848 | $this->logger |
| 849 | 849 | ); |
| 850 | 850 | |
| 851 | - $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__; |
|
| 851 | + $exceptionMessage = 'This is a test exception message for '.__FUNCTION__; |
|
| 852 | 852 | $exceptionCode = 123; |
| 853 | 853 | $exception = new \RuntimeException($exceptionMessage, $exceptionCode); |
| 854 | 854 | |