- Applied Phpstorm PSR format
- Changed RegExp format
This commit is contained in:
parent
6963bf6028
commit
57e7559c1b
1 changed files with 4 additions and 2 deletions
|
@ -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,9 @@ class MetadataFilter extends \FilterIterator implements \Countable
|
|||
$metadata = $it->current();
|
||||
|
||||
foreach ($this->filter as $filter) {
|
||||
if(preg_match("#$filter#",$metadata->name,$m)) return true;
|
||||
if (preg_match("/$filter/", $metadata->name, $m)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue