We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 272-277 (lines=6) @@ | ||
269 | public function getReverseDNSLookupName() |
|
270 | { |
|
271 | switch ($this->getAddressType()) { |
|
272 | case AddressType::T_IPv4: |
|
273 | $unitSize = 8; // bytes |
|
274 | $maxUnits = 4; |
|
275 | $isHex = false; |
|
276 | $rxUnit = '\d+'; |
|
277 | break; |
|
278 | case AddressType::T_IPv6: |
|
279 | $unitSize = 4; // nibbles |
|
280 | $maxUnits = 32; |
|
@@ 278-283 (lines=6) @@ | ||
275 | $isHex = false; |
|
276 | $rxUnit = '\d+'; |
|
277 | break; |
|
278 | case AddressType::T_IPv6: |
|
279 | $unitSize = 4; // nibbles |
|
280 | $maxUnits = 32; |
|
281 | $isHex = true; |
|
282 | $rxUnit = '[0-9A-Fa-f]'; |
|
283 | break; |
|
284 | } |
|
285 | $totBits = $unitSize * $maxUnits; |
|
286 | $prefixUnits = (int) ($this->networkPrefix / $unitSize); |