Skip to content

Commit

Permalink
chore: updating PHP CS fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavs-gutmanis committed Dec 28, 2021
1 parent 1102b1d commit 941aea1
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 79 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ yarnstart.sh

.phpunit.result.cache
.php_cs.cache
.php-cs-fixer.cache
7 changes: 4 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
'@Symfony:risky' => true,
'@PHPUnit75Migration:risky' => true,
'@PhpCsFixer' => true,
'protected_to_private' => false,
'combine_nested_dirname' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_nested_dirname' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'long'],
'protected_to_private' => false,
'single_trait_insert_per_statement' => true,
'ternary_to_null_coalescing' => true,
'visibility_required' => ['elements' => ['property', 'method']],
])
->setRiskyAllowed(true)
->setFinder($finder);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"require-dev": {
"phpunit/phpunit": "^9.3.0",
"friendsofphp/php-cs-fixer": "^2.19",
"friendsofphp/php-cs-fixer": "^3.4.0",
"brainmaestro/composer-git-hooks": "^2.8"
},
"autoload": {
Expand Down
136 changes: 62 additions & 74 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/plugin/src/Library/Helpers/IpUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function checkIp6($requestIp, $ip)
for ($i = 1, $ceil = ceil($netmask / 16); $i <= $ceil; ++$i) {
$left = $netmask - 16 * ($i - 1);
$left = ($left <= 16) ? $left : 16;
$mask = ~(0xffff >> $left) & 0xffff;
$mask = ~(0xFFFF >> $left) & 0xFFFF;
if (($bytesAddr[$i] & $mask) != ($bytesTest[$i] & $mask)) {
return self::$checkedIps[$cacheKey] = false;
}
Expand Down

0 comments on commit 941aea1

Please sign in to comment.