Open roberto-butti opened 6 months ago
Hi @RicLeP i see your comments, thank you! So are you suggesting to avoid yoda style, so i can set in the PHP cs fixer configuration :
'yoda_style' => [
'always_move_variable' => false,
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
What do you think ?
It’s a code style choice so not essential, however I think it’s usually recommended, but go with what you feel it best. :)
Since PSR-12 its not recommended to use yoda style due to less readability of the code. However i prefer yoda style as well :)
Introducing Rector and updating the code for:
The configurarion:
Running all tests are still green