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