Skip to content
Snippets Groups Projects
Commit bd6fa628 authored by Camille Simiand's avatar Camille Simiand
Browse files

Add PHP-CS-FIXER tool - tuleap Ref #32

The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to
follow standards (as defined in the PSR-1, PSR-2, etc.)

To fix the files in a specific directory, run:
`tools/php-cs-fixer/vendor/bin/php-cs-fixer fix <directory-target>`
parent 8bcc2dc2
No related branches found
No related tags found
1 merge request!4Add PHP-CS-FIXER tool - tuleap Ref #32
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
/public/bundles/ /public/bundles/
/var/ /var/
/vendor/ /vendor/
tools/php-cs-fixer/vendor/
###< symfony/framework-bundle ### ###< symfony/framework-bundle ###
###> symfony/phpunit-bridge ### ###> symfony/phpunit-bridge ###
......
{"php":"7.4.25","version":"3.3.2:v3.3.2#06bdbdfcd619183dd7a1a6948360f8af73b9ecec","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\/Kernel.php":1383108647}}
\ No newline at end of file
{
"require": {
"friendsofphp/php-cs-fixer": "^3.3"
}
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment