Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Add completion for debug:twig#43846
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
StaffNowa commentedNov 1, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@fabpot disabled IDE and tried to clean my code. |
fabpot commentedNov 1, 2021
You can ignore fabbot :) |
StaffNowa commentedNov 1, 2021
OK 🤣 |
wouterj left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you for the PR!
I've added a couple comments, seems like you missed some things while applying some of Fabien's comments :) If this is fixed, it should be ready to go imho
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
StaffNowa commentedNov 1, 2021
@wouterj thanks for code review. I missed that we have two methods for execute() displayGeneralText() and displayGeneralJson() |
| $names = []; | ||
| $paths =$this->getLoaderPaths(); | ||
| foreach ($pathsas$namespace =>$paths) { | ||
| $names[] =$namespace; | ||
| } | ||
| return$names; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This can be replaced witharray_keys($this->getLoaderPaths()) (and can be inlined on line 118 directly)
| privatefunctiongetAvailableFormatOptions():array | ||
| { | ||
| return ['text','json']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
can be inlined as well
StaffNowa commentedNov 1, 2021
@wouterj thanks optimized code :) |
fabpot commentedNov 1, 2021
Thank you@StaffNowa. |

Add completion for debug:twig