diff --git a/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php b/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php index 52a826418..92a4a6b58 100644 --- a/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php +++ b/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php @@ -58,7 +58,7 @@ class MetadataFilter extends \FilterIterator implements \Countable */ public function __construct(\ArrayIterator $metadata, $filter) { - $this->filter = (array)$filter; + $this->filter = (array) $filter; parent::__construct($metadata); } @@ -76,7 +76,7 @@ class MetadataFilter extends \FilterIterator implements \Countable $metadata = $it->current(); foreach ($this->filter as $filter) { - if (preg_match("/".preg_quote($filter)."/", $metadata->name)) { + if (preg_match("/" . preg_quote($filter) . "/", $metadata->name)) { return true; } }