1
0
mirror of synced 2025-01-08 10:07:10 +03:00

added space after type cast (I could not find any rule in psr1/2 standard, but I modified in PhpStorm)

This commit is contained in:
catalin 2012-11-06 22:31:54 +02:00 committed by Benjamin Eberlei
parent 2326033e79
commit 0d8f572661

View File

@ -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;
}
}