Repository navigation
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
fredden
marked this pull request as draft
July 13, 2022 15:58
Contributor
|
Contributor
Author
Yes, see #2078 (comment).
I've been working on this, and it's difficult. I expect to update the pull request with this soon.
I agree. Can you suggest a viable alternative in this case? |
This comment was marked as outdated.
This comment was marked as outdated.
fredden
marked this pull request as ready for review
October 23, 2022 11:03
fredden
marked this pull request as draft
June 7, 2023 10:06
This comment was marked as outdated.
This comment was marked as outdated.
Generic and PSR2 standards for function call indentation
fredden
marked this pull request as ready for review
July 11, 2023 16:28
fredden
force-pushed
the
whitespace-incompatibility
branch
from
July 11, 2023 16:36
635cd00 to
33a4d33
Compare
Contributor
Author
|
@jrfnl I've revisited this and written something completely different to the first attempt. I don't seem to be able to request your review via the GitHub web interface. Please can you take a look at this and let me know what you think.
|
fredden
force-pushed
the
whitespace-incompatibility
branch
from
July 24, 2023 14:42
1a2e643 to
507294a
Compare
fredden
force-pushed
the
whitespace-incompatibility
branch
from
September 6, 2023 12:39
507294a to
b94ac08
Compare
5 tasks done
Contributor
Author
|
Superseded by PHPCSStandards/PHP_CodeSniffer#38 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generic.WhiteSpace.ScopeIndentandPSR2.Methods.FunctionCallSignatureboth try to fix indentation differently. This results in files not being able to be fixed automatically withphpcbf.See #2078 (comment) where @gsherwood says that
Generic.WhiteSpace.ScopeIndentshould win in these cases.This pull request fixes #2078
by eliminating the incompatibility when both sniffs are being run. When.Generic.WhiteSpace.ScopeIndentis not active, thenPSR2.Methods.FunctionCallSignaturewill continue to work as normal. WhenGeneric.WhiteSpace.ScopeIndentis active, then this particular code-path will be ignored/skipped