| Conditions | 4 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 61 | public function getReporter(string $name, string $scope = null) |
|
| 44 | { |
||
| 45 | 61 | if ($scope) { |
|
| 46 | 1 | return isset($this->reporters[$scope][$name]) ? $this->reporters[$scope][$name] : null; |
|
| 47 | } |
||
| 48 | |||
| 49 | 61 | return isset($this->reporters['all'][$name]) ? $this->reporters['all'][$name] : null; |
|
| 50 | } |
||
| 66 |