| Conditions | 5 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 1 | public function getReporter(string $alias, ?string $scope = null): ?ReporterInterface |
|
| 40 | { |
||
| 41 | 1 | if ($scope && isset($this->reporters[$scope])) { |
|
| 42 | 1 | return isset($this->reporters[$scope][$alias]) ? $this->reporters[$scope][$alias] : null; |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | return isset($this->reporters['all'][$alias]) ? $this->reporters['all'][$alias] : null; |
|
| 46 | } |
||
| 60 |