-
In our codebase we use heredocs that we identify as $this->execute(query: <<<'GRAPHQL'
query {
user {
firstName
}
}
GRAPHQL,
variables: []
); I would like to detect these heredocs and apply custom code that reformats those queries. Would something like that be possible? Same could be done for Could somebody give me a suggestion on the best approach to create such a rule? Thanks 💙 |
Beta Was this translation helpful? Give feedback.
Answered by
ruudk
May 24, 2023
Replies: 1 comment 1 reply
-
@ruudk did you find solution? Would you mind sharing it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, this is the solution I came up with. Works pretty well: