We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 14 | public function configure($name, array $params = array()) |
|
| 21 | { |
||
| 22 | 14 | if ($params['networkRange']) { |
|
| 23 | 9 | $range = $params['networkRange']; |
|
| 24 | 9 | $message = $range['min']; |
|
| 25 | |||
| 26 | 9 | if (isset($range['max'])) { |
|
| 27 | 6 | $message .= '-'.$range['max']; |
|
| 28 | 6 | } else { |
|
| 29 | 3 | $message .= '/'.long2ip($range['mask']); |
|
| 30 | } |
||
| 31 | |||
| 32 | 9 | $params['range'] = $message; |
|
| 33 | 9 | } |
|
| 34 | |||
| 35 | 14 | return parent::configure($name, $params); |
|
| 36 | } |
||
| 37 | |||
| 47 |