Skip to content

Enhancement: Enable braces_position fixer #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

localheinz
Copy link
Contributor

@localheinz localheinz commented Dec 7, 2023

This pull request

  • enables the braces_position fixer
  • runs make coding-standards

Follows #559.

πŸ’β€β™‚οΈ For reference, see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.40.2/doc/rules/basic/braces_position.rst.

@@ -24,6 +24,7 @@
'array_syntax' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'braces_position' => true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, this fixer could also be configured with a range of options.

Comment on lines +22 to +23
function imgheader($filename)
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this. Also, I think this fixer should be applied together with indentation fixer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe #886 helps, @kamil-tekiela?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, I would hold off with applying either of them. It creates too many changes and I don't know if this project is ready for this yet. I'd rather take small steps here.

@localheinz localheinz marked this pull request as draft December 7, 2023 14:39
@localheinz
Copy link
Contributor Author

I could rebase this pull request after the merge of #934.

@localheinz
Copy link
Contributor Author

Closing as requested by @pronskiy.

@localheinz localheinz closed this Feb 12, 2024
@localheinz localheinz deleted the feature/braces-position branch February 12, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants