Skip to content

Commit 760d4ff

Browse files
Fix CS
1 parent 8937c4a commit 760d4ff

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,7 @@ protected function assertValidMappingConfiguration(array $mappingConfig, $object
239239
}
240240

241241
if (!\in_array($mappingConfig['type'], ['xml', 'yml', 'annotation', 'php', 'staticphp'])) {
242-
throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or '.
243-
'"staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. '.
244-
'You can register them by adding a new driver to the '.
245-
'"%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')
246-
));
242+
throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or "staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. You can register them by adding a new driver to the "%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')));
247243
}
248244
}
249245

Security/User/EntityUserProvider.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ public function refreshUser(UserInterface $user)
8383
// That's the case when the user has been changed by a form with
8484
// validation errors.
8585
if (!$id = $this->getClassMetadata()->getIdentifierValues($user)) {
86-
throw new \InvalidArgumentException('You cannot refresh a user '.
87-
'from the EntityUserProvider that does not contain an identifier. '.
88-
'The user object has to be serialized with its own identifier '.
89-
'mapped by Doctrine.'
90-
);
86+
throw new \InvalidArgumentException('You cannot refresh a user from the EntityUserProvider that does not contain an identifier. The user object has to be serialized with its own identifier mapped by Doctrine.');
9187
}
9288

9389
$refreshedUser = $repository->find($id);

0 commit comments

Comments
 (0)