Skip to content

Commit ea5fe88

Browse files
Stefan WeilUBMA Sysadmins
authored andcommitted
Fix long line in IpAddressUtils.php
1 parent 79548f7 commit ea5fe88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

module/VuFind/src/VuFind/Net/IpAddressUtils.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ public function isInRange(string $ip, array $ranges): bool
129129
if ($subnet === false) {
130130
continue;
131131
}
132-
$prefixLength = (int) $prefixLength;
132+
$prefixLength = (int)$prefixLength;
133133

134134
// Calculate the network mask
135135
$networkMask = str_repeat('f', $prefixLength >> 2) // Full hex nibbles
136136
. str_repeat(
137-
dechex((0xf0 >> ($prefixLength % 4)) & 0xf),
138-
($prefixLength % 4 !== 0) ? 1 : 0
139-
) // Partial nibble
137+
dechex((0xf0 >> ($prefixLength % 4)) & 0xf),
138+
($prefixLength % 4 !== 0) ? 1 : 0
139+
) // Partial nibble
140140
. str_repeat('0', (128 - $prefixLength) >> 2); // Remaining bits as zero
141141

142142
$networkMask = pack('H*', $networkMask);

0 commit comments

Comments
 (0)