Skip to content

Commit

Permalink
fix: formatting issues in XMLParserTest, CRC64, and SM3 classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Apr 1, 2024
1 parent 7b15d78 commit a8c874b
Show file tree
Hide file tree
Showing 5 changed files with 1,796 additions and 1,794 deletions.
52 changes: 27 additions & 25 deletions .php-cs-fixer.dist.php
Expand Up @@ -21,21 +21,21 @@
->setRiskyAllowed(true)
->setIndent(' ')
->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'@Symfony:risky' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'combine_consecutive_unsets' => true,
'@PSR2' => true,
'@PhpCsFixer' => true,
'@Symfony:risky' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'combine_consecutive_unsets' => true,
// 'method_separation' => true,
'single_quote' => true,
'declare_equal_normalize' => true,
'function_typehint_space' => true,
'single_quote' => true,
'declare_equal_normalize' => true,
'function_typehint_space' => true,
// 'hash_to_slash_comment' => true,
'include' => true,
'lowercase_cast' => true,
'native_function_invocation' => [],
'include' => true,
'lowercase_cast' => true,
'native_function_invocation' => [],
// 'no_multiline_whitespace_before_semicolons' => true,
'no_leading_import_slash' => true,
'no_multiline_whitespace_around_double_arrow' => true,
Expand All @@ -46,14 +46,14 @@
'no_whitespace_in_blank_line' => true,
'object_operator_without_whitespace' => true,
// 'single_blank_line_before_namespace' => true,
'single_class_element_per_statement' => true,
'space_after_semicolon' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'single_class_element_per_statement' => true,
'space_after_semicolon' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
// 'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
// 'no_extra_consecutive_blank_lines' => [
// 'curly_brace_block',
// 'extra',
Expand All @@ -62,14 +62,16 @@
// 'throw',
// 'use',
// ],
'binary_operator_spaces' => [
'default' => 'align',
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
'operators' => [
'=>' => 'align',
'=' => 'align',
'=>' => 'align_single_space_minimal',
'=' => 'align_single_space',
'|' => 'no_space',
'===' => 'align_single_space_minimal',
],
],
'braces' => [
'braces' => [
'allow_single_line_closure' => true,
],
])
Expand Down
2 changes: 1 addition & 1 deletion src/CRC64.php
Expand Up @@ -13,7 +13,7 @@ class CRC64
public function __construct()
{
if ([] === self::$crc64tab) {
$poly64rev = (0xC96C5795 << 32) | 0xD7870F42;
$poly64rev = (0xC96C5795 << 32)|0xD7870F42;
for ($n = 0; $n < 256; ++$n) {
$crc = $n;
for ($k = 0; $k < 8; ++$k) {
Expand Down

0 comments on commit a8c874b

Please sign in to comment.