You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 1.0-dev branch.
Discussion
----------
Remove unecessary code
Hello,
I found some places were there is unused variables, unused argument or unnecessary check .
As is my first PR on this repository, let me know if I miss something !
Commits
-------
12cf21c Remove unecessary code
$closing[] = sprintf(' 1) Run <fg=yellow>"%s make:migration"</> to generate a migration for the new <fg=yellow>"%s"</> entity.', CliOutputHelper::getCommandPrefix(), $requestClassName);
if (!$registryinstanceof ManagerRegistry && !$registryinstanceof LegacyManagerRegistry) {
162
-
thrownew \InvalidArgumentException(sprintf('Argument 2 to %s::validateDoctrineFieldName must be an instance of %s, %s passed.', __CLASS__, ManagerRegistry::class, \is_object($registry) ? $registry::class : \gettype($registry)));
163
-
}
164
-
165
161
// check reserved words
166
162
if ($registry->getConnection()->getDatabasePlatform()->getReservedKeywordsList()->isKeyword($name)) {
167
163
thrownew \InvalidArgumentException(sprintf('Name "%s" is a reserved word.', $name));
0 commit comments