-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixcode.sh
2 lines (2 loc) · 1.28 KB
/
fixcode.sh
1
2
./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix src/ --rules='{"array_syntax": {"syntax": "short"},"@PSR2": true,"no_unused_imports": true,"ordered_imports": true,"blank_line_after_namespace": true,"blank_line_after_opening_tag": true,"blank_line_before_return": true,"no_leading_import_slash": true,"no_leading_namespace_whitespace": true,"no_null_property_initialization": true,"ordered_class_elements": true,"ordered_imports": true,"single_blank_line_at_eof": true,"single_line_after_imports": true,"visibility_required": true,"no_blank_lines_after_phpdoc": true,"no_blank_lines_after_class_opening": true,"no_extra_consecutive_blank_lines": true}'
./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix tests/ --rules='{"array_syntax": {"syntax": "short"},"@PSR2": true,"no_unused_imports": true,"ordered_imports": true,"blank_line_after_namespace": true,"blank_line_after_opening_tag": true,"blank_line_before_return": true,"no_leading_import_slash": true,"no_leading_namespace_whitespace": true,"no_null_property_initialization": true,"ordered_class_elements": true,"ordered_imports": true,"single_blank_line_at_eof": true,"single_line_after_imports": true,"visibility_required": true,"no_blank_lines_after_phpdoc": true,"no_blank_lines_after_class_opening": true,"no_extra_consecutive_blank_lines": true}'