facile-it/facile-coding-standard
PHP coding standard based on PHP-CS-Fixer by Facile.it. Installs via Composer with an interactive setup that generates a .php-cs-fixer.dist.php, auto-detects files from composer autoload (psr-0/psr-4/classmap), and adds cs-check/cs-fix scripts.
symfony/console to 5.4native_function_type_declaration_casing (#80)numeric_literal_separator rule (#65)heredoc_closing_marker, multiline_string_to_heredoc)class_keyword rule (#64)
NB: the rule is experimental, and relies on runtime autoload to determine if a FCQN refers to an existing classlong_to_shorthand_operator to RiskyRulesProvider (#62)The following rules or groups have been added to the default rule set:
[@PER-CS2](https://github.com/PER-CS2).0 (with [@PSR12](https://github.com/PSR12) as fallback)[@PER-CS2](https://github.com/PER-CS2).0:risky (with [@PSR12](https://github.com/PSR12):risky as fallback)[@DoctrineAnnotation](https://github.com/DoctrineAnnotation)array_pushassign_null_coalescing_to_coalesce_equalattribute_empty_parenthesesbacktick_to_shell_execclass_reference_name_casingcombine_consecutive_issetscombine_consecutive_unsetscombine_nested_dirnamecurly_braces_positiondeclare_parenthesesempty_loop_bodyereg_to_pregexplicit_string_variableget_class_to_class_keywordheredoc_to_nowdocheredoc_indentationimplode_callinteger_literal_caselambda_not_used_importlinebreak_after_opening_taglist_syntaxlong_to_shorthand_operatormagic_constant_casingmagic_method_casingmodernize_strposnative_function_type_declaration_casingnative_type_declaration_casingno_alternative_syntaxno_superfluous_elseifno_superfluous_phpdoc_tagsno_trailing_comma_in_singlelineno_trailing_comma_in_singleline_function_callno_unneeded_import_aliasno_unneeded_bracesno_unset_castno_useless_concat_operatorno_useless_elseno_useless_sprintfnullable_type_declarationoctal_notationoperator_linebreakordered_traitsphpdoc_inline_tag_normalizerphpdoc_no_alias_tagphpdoc_param_orderphpdoc_summaryphpdoc_tag_casingphpdoc_tag_typephpdoc_var_annotation_correct_orderphp_unit_data_provider_staticphp_unit_dedicate_assert_internal_typephp_unit_expectationphp_unit_fqcn_annotationphp_unit_mock_short_will_returnreturn_to_yield_fromphpdoc_trim_consecutive_blank_line_separationsemicolon_after_instructionsingle_line_comment_spacingsingle_line_empty_bodysingle_space_around_constructsingle_trait_insert_per_statementswitch_continue_to_breaktype_declaration_spacestypes_spacesno_homoglyph_namesset_type_to_castternary_to_elvis_operatorphpdoc_align is now enabled with config leftordered_imports is now falling back to PER-CS configuration, which is not the same as the default oneMultiple rules are removed (but still applied) since they're already covered in PER-CS or PSR-12 with the same configuration as before:
blank_line_after_namespaceblank_line_after_opening_tagcompact_nullable_type_declarationdeclare_equal_normalizelowercase_castnew_with_parenthesesno_leading_import_slashno_whitespace_in_blank_linereturn_type_declarationshort_scalar_castternary_operator_spacesunary_operator_spacesself_accessor (it became risky)How can I help you explore Laravel packages today?