diff --git a/lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php index 8217fa370..d7943551e 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php @@ -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); } );