| @@ 88-101 (lines=14) @@ | ||
| 85 | * |
|
| 86 | * @return bool |
|
| 87 | */ |
|
| 88 | protected function matches($patterns, $subject) |
|
| 89 | { |
|
| 90 | $isMatched = false; |
|
| 91 | ||
| 92 | foreach ($patterns as $pattern) { |
|
| 93 | if (preg_match($pattern, $subject)) { |
|
| 94 | $isMatched = true; |
|
| 95 | ||
| 96 | break; |
|
| 97 | } |
|
| 98 | } |
|
| 99 | ||
| 100 | return $isMatched; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| @@ 98-111 (lines=14) @@ | ||
| 95 | * |
|
| 96 | * @return bool |
|
| 97 | */ |
|
| 98 | protected function matches($patterns, $subject) |
|
| 99 | { |
|
| 100 | $isMatched = false; |
|
| 101 | ||
| 102 | foreach ($patterns as $pattern) { |
|
| 103 | if (preg_match($pattern, $subject)) { |
|
| 104 | $isMatched = true; |
|
| 105 | ||
| 106 | break; |
|
| 107 | } |
|
| 108 | } |
|
| 109 | ||
| 110 | return $isMatched; |
|
| 111 | } |
|
| 112 | } |
|
| 113 | ||