1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

#1120 - removed redundant if block

This commit is contained in:
Marco Pivetta 2014-10-19 18:42:14 +02:00
parent 1208cc836a
commit d5d64b756d

View file

@ -173,11 +173,7 @@ EOT
$matches = array_filter(
$this->getMappedEntities($entityManager),
function ($mappedEntity) use ($entityName) {
if (preg_match('{' . preg_quote($entityName) . '}', $mappedEntity)) {
return true;
}
return false;
return preg_match('{' . preg_quote($entityName) . '}', $mappedEntity);
}
);