@@ 378-391 (lines=14) @@ | ||
375 | // If the file path matches one of our ignore patterns, skip it. |
|
376 | // While there is support for a type of each pattern |
|
377 | // (absolute or relative) we don't actually support it here. |
|
378 | foreach ($listenerData['ignore'] as $pattern) { |
|
379 | // We assume a / directory separator, as do the exclude rules |
|
380 | // most developers write, so we need a special case for any system |
|
381 | // that is different. |
|
382 | if (DIRECTORY_SEPARATOR === '\\') { |
|
383 | $pattern = str_replace('/', '\\\\', $pattern); |
|
384 | } |
|
385 | ||
386 | $pattern = '`'.$pattern.'`i'; |
|
387 | if (preg_match($pattern, $this->path) === 1) { |
|
388 | $this->ignoredListeners[$class] = true; |
|
389 | continue(2); |
|
390 | } |
|
391 | } |
|
392 | ||
393 | // If the file path does not match one of our include patterns, skip it. |
|
394 | // While there is support for a type of each pattern |
|
@@ 396-409 (lines=14) @@ | ||
393 | // If the file path does not match one of our include patterns, skip it. |
|
394 | // While there is support for a type of each pattern |
|
395 | // (absolute or relative) we don't actually support it here. |
|
396 | foreach ($listenerData['include'] as $pattern) { |
|
397 | // We assume a / directory separator, as do the exclude rules |
|
398 | // most developers write, so we need a special case for any system |
|
399 | // that is different. |
|
400 | if (DIRECTORY_SEPARATOR === '\\') { |
|
401 | $pattern = str_replace('/', '\\\\', $pattern); |
|
402 | } |
|
403 | ||
404 | $pattern = '`'.$pattern.'`i'; |
|
405 | if (preg_match($pattern, $this->path) !== 1) { |
|
406 | $this->ignoredListeners[$class] = true; |
|
407 | continue(2); |
|
408 | } |
|
409 | } |
|
410 | ||
411 | $this->activeListener = $class; |
|
412 |