| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function findReviewerByOrigin(OriginInterface $origin): ReviewerInterface |
||
| 38 | { |
||
| 39 | foreach ($this->reviewers as $reviewer) { |
||
| 40 | if ($reviewer->accepts($origin)) { |
||
| 41 | return $reviewer; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | throw new LogicException(sprintf('Unable to review an origin of class %s', get_class($origin))); |
||
| 45 | } |
||
| 47 |