Refactor -> Extract Method -> another Class
Hello !
At the moment I improve a script.
I eliminate duplicate blocks of code and prepare the development of the script.
Sometimes I find blocks of code that are duplicated.
Can I outsource these blocks of code in another class ?
I would like to use a similar hand tools Refactor -> Extract Method.
The improvement would be to specify an already existing class.
Your sincerly
Stephan
Please sign in to leave a comment.
Hello Stephan,
This action is usually handled in two steps:
As 'Move' refactoring is not implemented for PHP languaget yet, it is not supported. Please vote - http://youtrack.jetbrains.net/issue/WI-7523
So currently you should perform 'Move' manually.
Please look at - http://youtrack.jetbrains.net/issue/WI-5695.
Thank you for feedback!