Create rector for transforming Laravel validation rules to a prettier format#1914
Conversation
ca36418 to
e192c2f
Compare
|
Looks very robust, good job! Looks at local To both your points, this is job of coding standard tool, as they handle it better (AST sucks at coding standard by technology limits) and every project has different ruleset. Just see |
|
Rebase on |
|
I use this approach to update the forks: https://help.github.com/en/articles/syncing-a-fork First it's a bit hard to understand, but then works pretty well 👍 |
|
Could you rebase one more time? |
|
Thank you too much for help! Do I need to do something more? |
|
CI passes, great 👍 Could you add 1-2 more test that would cover some other/skipped cases? |
|
I've created all cases that this rector can process, in future I'll try to expand its functionality and add other :) |
|
Thank you for your contribution! |
rectorphp/rector-src@72710eb Typo fix: ecs -> rector in ApplicationFileProcessor (#1914)

#1766
This is the first simplest version that covers the most of situations, but it is not fully flexible.
Now it works, but it can be improved. I tried to implement some features, but I didn't succeed.
Is there a way to include additional
usestatement instead of using full namespace? I mean I want to split\Illuminate\Validation\Rule::exists(...)into ause \Illuminate\Validation\Rule;statement andRule::exists(...)statement.Is there a way to split each array element to the new line? All rules in one line don't look so beautiful.