Skip to content

Commit f4cbbb6

Browse files
committed
Fix CS
1 parent c022af4 commit f4cbbb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IpUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static function checkIp6($requestIp, $ip)
149149
for ($i = 1, $ceil = ceil($netmask / 16); $i <= $ceil; ++$i) {
150150
$left = $netmask - 16 * ($i - 1);
151151
$left = ($left <= 16) ? $left : 16;
152-
$mask = ~(0xffff >> $left) & 0xffff;
152+
$mask = ~(0xFFFF >> $left) & 0xFFFF;
153153
if (($bytesAddr[$i] & $mask) != ($bytesTest[$i] & $mask)) {
154154
return self::$checkedIps[$cacheKey] = false;
155155
}

Tests/ParameterBagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ public function testFilter()
149149

150150
$this->assertFalse($bag->filter('dec', '', \FILTER_VALIDATE_INT, [
151151
'flags' => \FILTER_FLAG_ALLOW_HEX,
152-
'options' => ['min_range' => 1, 'max_range' => 0xff],
152+
'options' => ['min_range' => 1, 'max_range' => 0xFF],
153153
]), '->filter() gets a value of parameter as integer between boundaries');
154154

155155
$this->assertFalse($bag->filter('hex', '', \FILTER_VALIDATE_INT, [
156156
'flags' => \FILTER_FLAG_ALLOW_HEX,
157-
'options' => ['min_range' => 1, 'max_range' => 0xff],
157+
'options' => ['min_range' => 1, 'max_range' => 0xFF],
158158
]), '->filter() gets a value of parameter as integer between boundaries');
159159

160160
$this->assertEquals(['bang'], $bag->filter('array', ''), '->filter() gets a value of parameter as an array');

0 commit comments

Comments
 (0)