| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function reduceMetrics(Metrics $metrics) |
||
| 56 | { |
||
| 57 | $all = $metrics->all(); |
||
| 58 | $matched = new Metrics(); |
||
| 59 | |||
| 60 | foreach ($all as $metric) { |
||
| 61 | if (!preg_match($this->regex, $metric->getName())) { |
||
| 62 | continue; |
||
| 63 | } |
||
| 64 | |||
| 65 | $matched->attach($metric); |
||
| 66 | } |
||
| 67 | |||
| 68 | return $matched; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |