From 90e75d826eca01b8aa297be44f88f11a470b1156 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 13 Feb 2026 05:06:02 -0600 Subject: [PATCH] Signed-off-by: Joey Smith --- src/Webware1x0Set.php | 304 +++++++++++++++++++++--------------------- 1 file changed, 152 insertions(+), 152 deletions(-) diff --git a/src/Webware1x0Set.php b/src/Webware1x0Set.php index 1e2c368..8354b7d 100644 --- a/src/Webware1x0Set.php +++ b/src/Webware1x0Set.php @@ -38,56 +38,56 @@ public function isRisky(): bool public function getRules(): array { return [ - '@PER-CS3x0' => true, + '@PER-CS3x0' => true, // Basic - 'encoding' => true, - 'full_opening_tag' => true, - 'no_closing_tag' => true, + 'encoding' => true, + 'full_opening_tag' => true, + 'no_closing_tag' => true, // Array Notation - 'array_syntax' => [ + 'array_syntax' => [ 'syntax' => 'short', ], - 'no_trailing_comma_in_singleline' => [ + 'no_trailing_comma_in_singleline' => [ 'elements' => [ 'array', 'array_destructuring', ], ], - 'trim_array_spaces' => true, - 'whitespace_after_comma_in_array' => [ + 'trim_array_spaces' => true, + 'whitespace_after_comma_in_array' => [ 'ensure_single_space' => true, ], - 'no_whitespace_before_comma_in_array' => [ + 'no_whitespace_before_comma_in_array' => [ 'after_heredoc' => false, ], - 'trailing_comma_in_multiline' => [ + 'trailing_comma_in_multiline' => [ 'elements' => [ 'arrays', ], ], // Attribute Notation - 'attribute_empty_parentheses' => [ + 'attribute_empty_parentheses' => [ 'use_parentheses' => true, ], // Casing - 'constant_case' => [ + 'constant_case' => [ 'case' => 'lower', ], - 'lowercase_keywords' => true, - 'lowercase_static_reference' => true, - 'magic_constant_casing' => true, - 'magic_method_casing' => true, - 'native_function_casing' => true, - 'native_type_declaration_casing' => true, + 'lowercase_keywords' => true, + 'lowercase_static_reference' => true, + 'magic_constant_casing' => true, + 'magic_method_casing' => true, + 'native_function_casing' => true, + 'native_type_declaration_casing' => true, // Cast Notation - 'cast_spaces' => [ + 'cast_spaces' => [ 'space' => 'single', ], - 'lowercase_cast' => true, - 'no_short_bool_cast' => true, - 'short_scalar_cast' => true, + 'lowercase_cast' => true, + 'no_short_bool_cast' => true, + 'short_scalar_cast' => true, // Class Notation - 'class_attributes_separation' => [ + 'class_attributes_separation' => [ 'elements' => [ 'const' => 'one', 'method' => 'one', @@ -95,15 +95,15 @@ public function getRules(): array 'trait_import' => 'none', ], ], - 'class_definition' => [ + 'class_definition' => [ 'single_line' => true, 'single_item_single_line' => true, 'multi_line_extends_each_single_line' => true, 'space_before_parenthesis' => false, ], - 'no_blank_lines_after_class_opening' => true, - 'no_null_property_initialization' => true, - 'ordered_class_elements' => [ + 'no_blank_lines_after_class_opening' => true, + 'no_null_property_initialization' => true, + 'ordered_class_elements' => [ 'order' => [ 'use_trait', 'case', @@ -123,46 +123,46 @@ public function getRules(): array ], 'sort_algorithm' => 'none', ], - 'single_class_element_per_statement' => [ + 'single_class_element_per_statement' => [ 'elements' => [ 'property', 'const', ], ], - 'visibility_required' => [ + 'visibility_required' => [ 'elements' => [ 'property', 'method', 'const', ], ], - 'no_php4_constructor' => true, + 'no_php4_constructor' => true, // Comment - 'comment_to_phpdoc' => true, - 'multiline_comment_opening_closing' => true, - 'no_empty_comment' => true, - 'no_trailing_whitespace_in_comment' => true, - 'single_line_comment_spacing' => true, - 'single_line_comment_style' => [ + 'comment_to_phpdoc' => true, + 'multiline_comment_opening_closing' => true, + 'no_empty_comment' => true, + 'no_trailing_whitespace_in_comment' => true, + 'single_line_comment_spacing' => true, + 'single_line_comment_style' => [ 'comment_types' => [ 'asterisk', ], ], // Control Structure - 'control_structure_braces' => true, - 'control_structure_continuation_position' => [ + 'control_structure_braces' => true, + 'control_structure_continuation_position' => [ 'position' => 'same_line', ], - 'elseif' => true, - 'no_break_comment' => [ + 'elseif' => true, + 'no_break_comment' => [ 'comment_text' => 'no break', ], - 'no_superfluous_elseif' => true, - 'no_useless_else' => true, - 'switch_case_semicolon_to_colon' => true, - 'switch_case_space' => true, - 'switch_continue_to_break' => true, - 'trailing_comma_in_multiline' => [ + 'no_superfluous_elseif' => true, + 'no_useless_else' => true, + 'switch_case_semicolon_to_colon' => true, + 'switch_case_space' => true, + 'switch_continue_to_break' => true, + 'trailing_comma_in_multiline' => [ 'elements' => [ 'arrays', 'match', @@ -170,24 +170,24 @@ public function getRules(): array ], ], // Function Notation - 'function_declaration' => [ + 'function_declaration' => [ 'closure_function_spacing' => 'one', 'closure_fn_spacing' => 'one', ], - 'lambda_not_used_import' => true, - 'method_argument_space' => [ + 'lambda_not_used_import' => true, + 'method_argument_space' => [ 'on_multiline' => 'ensure_fully_multiline', 'after_heredoc' => false, 'keep_multiple_spaces_after_comma' => false, ], - 'no_spaces_after_function_name' => true, - 'no_useless_sprintf' => true, - 'return_type_declaration' => [ + 'no_spaces_after_function_name' => true, + 'no_useless_sprintf' => true, + 'return_type_declaration' => [ 'space_before' => 'none', ], - 'single_line_throw' => true, + 'single_line_throw' => true, // Import - 'fully_qualified_strict_types' => [ + 'fully_qualified_strict_types' => [ 'import_symbols' => true, 'phpdoc_tags' => [ 'param', @@ -212,16 +212,16 @@ public function getRules(): array 'var', ], ], - 'global_namespace_import' => [ + 'global_namespace_import' => [ 'import_classes' => true, 'import_constants' => true, 'import_functions' => true, ], - 'group_import' => false, - 'no_leading_import_slash' => true, - 'no_unneeded_import_alias' => true, - 'no_unused_imports' => true, - 'ordered_imports' => [ + 'group_import' => false, + 'no_leading_import_slash' => true, + 'no_unneeded_import_alias' => true, + 'no_unused_imports' => true, + 'ordered_imports' => [ 'sort_algorithm' => 'alpha', 'imports_order' => [ 'class', @@ -229,19 +229,19 @@ public function getRules(): array 'const', ], ], - 'single_import_per_statement' => [ + 'single_import_per_statement' => [ 'group_to_single_imports' => true, ], - 'single_line_after_imports' => true, - 'blank_line_between_import_groups' => true, + 'single_line_after_imports' => true, + 'blank_line_between_import_groups' => true, // Language Construct - 'combine_consecutive_issets' => true, - 'combine_consecutive_unsets' => true, - 'declare_equal_normalize' => [ + 'combine_consecutive_issets' => true, + 'combine_consecutive_unsets' => true, + 'declare_equal_normalize' => [ 'space' => 'none', ], - 'declare_parentheses' => true, - 'single_space_around_construct' => [ + 'declare_parentheses' => true, + 'single_space_around_construct' => [ 'constructs_followed_by_a_single_space' => [ 'abstract', 'as', @@ -307,58 +307,58 @@ public function getRules(): array ], ], // List Notation - 'list_syntax' => [ + 'list_syntax' => [ 'syntax' => 'short', ], // Namespace Notation - 'blank_line_after_namespace' => true, - 'blank_lines_before_namespace' => [ + 'blank_line_after_namespace' => true, + 'blank_lines_before_namespace' => [ 'min_line_breaks' => 2, 'max_line_breaks' => 2, ], - 'clean_namespace' => true, - 'no_leading_namespace_whitespace' => true, + 'clean_namespace' => true, + 'no_leading_namespace_whitespace' => true, // Operator - 'assign_null_coalescing_to_coalesce_equal' => true, - 'binary_operator_spaces' => [ + 'assign_null_coalescing_to_coalesce_equal' => true, + 'binary_operator_spaces' => [ 'default' => 'align_single_space_minimal', 'operators' => [ '=>' => 'align_single_space_minimal_by_scope', ], ], - 'concat_space' => [ + 'concat_space' => [ 'spacing' => 'one', ], - 'logical_operators' => true, - 'new_with_parentheses' => [ + 'logical_operators' => true, + 'new_with_parentheses' => [ 'named_class' => true, 'anonymous_class' => true, ], - 'no_space_around_double_colon' => true, - 'no_useless_concat_operator' => [ + 'no_space_around_double_colon' => true, + 'no_useless_concat_operator' => [ 'juggle_simple_strings' => true, ], - 'no_useless_nullsafe_operator' => true, - 'not_operator_with_successor_space' => true, - 'object_operator_without_whitespace' => true, - 'operator_linebreak' => [ + 'no_useless_nullsafe_operator' => true, + 'not_operator_with_successor_space' => true, + 'object_operator_without_whitespace' => true, + 'operator_linebreak' => [ 'only_booleans' => false, 'position' => 'beginning', ], - 'standardize_not_equals' => true, - 'ternary_operator_spaces' => true, - 'ternary_to_null_coalescing' => true, - 'unary_operator_spaces' => [ + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'ternary_to_null_coalescing' => true, + 'unary_operator_spaces' => [ 'only_dec_inc' => false, ], // PHP Tag - 'blank_line_after_opening_tag' => true, - 'linebreak_after_opening_tag' => true, + 'blank_line_after_opening_tag' => true, + 'linebreak_after_opening_tag' => true, // PHPDoc - 'align_multiline_comment' => [ + 'align_multiline_comment' => [ 'comment_type' => 'phpdocs_only', ], - 'general_phpdoc_annotation_remove' => [ + 'general_phpdoc_annotation_remove' => [ 'annotations' => [ 'api', 'author', @@ -371,19 +371,19 @@ public function getRules(): array 'version', ], ], - 'no_blank_lines_after_phpdoc' => true, - 'no_empty_phpdoc' => true, - 'no_superfluous_phpdoc_tags' => [ + 'no_blank_lines_after_phpdoc' => true, + 'no_empty_phpdoc' => true, + 'no_superfluous_phpdoc_tags' => [ 'remove_inheritdoc' => false, 'allow_mixed' => true, 'allow_unused_params' => false, ], - 'phpdoc_align' => [ + 'phpdoc_align' => [ 'align' => 'left', ], - 'phpdoc_annotation_without_dot' => false, - 'phpdoc_indent' => true, - 'phpdoc_inline_tag_normalizer' => [ + 'phpdoc_annotation_without_dot' => false, + 'phpdoc_indent' => true, + 'phpdoc_inline_tag_normalizer' => [ 'tags' => [ 'example', 'id', @@ -396,13 +396,13 @@ public function getRules(): array 'tutorial', ], ], - 'phpdoc_line_span' => [ + 'phpdoc_line_span' => [ 'const' => 'single', 'property' => 'single', 'method' => null, ], - 'phpdoc_no_access' => true, - 'phpdoc_no_alias_tag' => [ + 'phpdoc_no_access' => true, + 'phpdoc_no_alias_tag' => [ 'replacements' => [ 'property-read' => 'property', 'property-write' => 'property', @@ -410,10 +410,10 @@ public function getRules(): array 'link' => 'see', ], ], - 'phpdoc_no_empty_return' => true, - 'phpdoc_no_package' => true, - 'phpdoc_no_useless_inheritdoc' => true, - 'phpdoc_order' => [ + 'phpdoc_no_empty_return' => true, + 'phpdoc_no_package' => true, + 'phpdoc_no_useless_inheritdoc' => true, + 'phpdoc_order' => [ 'order' => [ 'internal', 'deprecated', @@ -425,7 +425,7 @@ public function getRules(): array 'throws', ], ], - 'phpdoc_order_by_value' => [ + 'phpdoc_order_by_value' => [ 'annotations' => [ 'covers', 'coversNothing', @@ -443,8 +443,8 @@ public function getRules(): array 'uses', ], ], - 'phpdoc_param_order' => true, - 'phpdoc_return_self_reference' => [ + 'phpdoc_param_order' => true, + 'phpdoc_return_self_reference' => [ 'replacements' => [ 'this' => '$this', '@this' => '$this', @@ -454,7 +454,7 @@ public function getRules(): array '@static' => 'static', ], ], - 'phpdoc_scalar' => [ + 'phpdoc_scalar' => [ 'types' => [ 'boolean', 'callback', @@ -464,7 +464,7 @@ public function getRules(): array 'str', ], ], - 'phpdoc_separation' => [ + 'phpdoc_separation' => [ 'groups' => [ [ 'internal', @@ -482,14 +482,14 @@ public function getRules(): array ], ], ], - 'phpdoc_single_line_var_spacing' => true, - 'phpdoc_summary' => false, - 'phpdoc_tag_casing' => [ + 'phpdoc_single_line_var_spacing' => true, + 'phpdoc_summary' => false, + 'phpdoc_tag_casing' => [ 'tags' => [ 'inheritDoc', ], ], - 'phpdoc_tag_type' => [ + 'phpdoc_tag_type' => [ 'tags' => [ 'api' => 'annotation', 'author' => 'annotation', @@ -514,56 +514,56 @@ public function getRules(): array 'version' => 'annotation', ], ], - 'phpdoc_to_comment' => [ + 'phpdoc_to_comment' => [ 'ignored_tags' => [ 'psalm-suppress', 'phpstan-ignore-line', 'phpstan-ignore-next-line', ], ], - 'phpdoc_trim' => true, - 'phpdoc_trim_consecutive_blank_line_separation' => true, - 'phpdoc_types' => [ + 'phpdoc_trim' => true, + 'phpdoc_trim_consecutive_blank_line_separation' => true, + 'phpdoc_types' => [ 'groups' => [ 'simple', 'alias', 'meta', ], ], - 'phpdoc_types_order' => [ + 'phpdoc_types_order' => [ 'sort_algorithm' => 'alpha', 'null_adjustment' => 'always_last', ], - 'phpdoc_var_annotation_correct_order' => true, - 'phpdoc_var_without_name' => true, + 'phpdoc_var_annotation_correct_order' => true, + 'phpdoc_var_without_name' => true, // Return Notation - 'no_useless_return' => true, - 'return_assignment' => true, - 'simplified_null_return' => true, + 'no_useless_return' => true, + 'return_assignment' => true, + 'simplified_null_return' => true, // Semicolon - 'multiline_whitespace_before_semicolons' => [ + 'multiline_whitespace_before_semicolons' => [ 'strategy' => 'no_multi_line', ], - 'no_empty_statement' => true, - 'no_singleline_whitespace_before_semicolons' => true, - 'semicolon_after_instruction' => true, - 'space_after_semicolon' => [ + 'no_empty_statement' => true, + 'no_singleline_whitespace_before_semicolons' => true, + 'semicolon_after_instruction' => true, + 'space_after_semicolon' => [ 'remove_in_empty_for_expressions' => false, ], // Strict - 'declare_strict_types' => true, - 'strict_comparison' => true, - 'strict_param' => true, + 'declare_strict_types' => true, + 'strict_comparison' => true, + 'strict_param' => true, // String Notation - 'explicit_string_variable' => true, - 'heredoc_to_nowdoc' => true, - 'simple_to_complex_string_variable' => true, - 'single_quote' => [ + 'explicit_string_variable' => true, + 'heredoc_to_nowdoc' => true, + 'simple_to_complex_string_variable' => true, + 'single_quote' => [ 'strings_containing_single_quote_chars' => false, ], // Whitespace - 'array_indentation' => true, - 'blank_line_before_statement' => [ + 'array_indentation' => true, + 'blank_line_before_statement' => [ 'statements' => [ 'break', 'case', @@ -585,14 +585,14 @@ public function getRules(): array 'yield_from', ], ], - 'compact_nullable_type_declaration' => true, - 'heredoc_indentation' => [ + 'compact_nullable_type_declaration' => true, + 'heredoc_indentation' => [ 'indentation' => 'same_as_start', ], - 'indentation_type' => true, - 'line_ending' => true, - 'method_chaining_indentation' => true, - 'no_extra_blank_lines' => [ + 'indentation_type' => true, + 'line_ending' => true, + 'method_chaining_indentation' => true, + 'no_extra_blank_lines' => [ 'tokens' => [ 'attribute', 'break', @@ -609,25 +609,25 @@ public function getRules(): array 'use', ], ], - 'no_spaces_around_offset' => [ + 'no_spaces_around_offset' => [ 'positions' => [ 'inside', 'outside', ], ], - 'no_trailing_whitespace' => true, - 'no_whitespace_in_blank_line' => true, - 'single_blank_line_at_eof' => true, - 'statement_indentation' => [ + 'no_trailing_whitespace' => true, + 'no_whitespace_in_blank_line' => true, + 'single_blank_line_at_eof' => true, + 'statement_indentation' => [ 'stick_comment_to_next_continuous_control_statement' => true, ], - 'type_declaration_spaces' => [ + 'type_declaration_spaces' => [ 'elements' => [ 'function', 'property', ], ], - 'types_spaces' => [ + 'types_spaces' => [ 'space' => 'none', ], ];