How to Massively Refactor Called Classes

Hi, I need to rework one class. It can be said that the class will be 100% reworked. The problem is that the class contains a static init method. Which it will not contain in the new version and its function will be performed by the constructor.

So my question is that there is a function within the php storm that will allow me to rewrite all calls of a given class in bulk, to others within the whole project?
So that this $ email = new PhpMailerFactory :: init () could be bulk rewritten to $ email = new PhpMailerFactory ().

 

1 comment
Comment actions Permalink

Please check the Structural Replace feature, looks like, it is what you are looking for:(https://www.jetbrains.com/help/phpstorm/structural-search-and-replace.html)

0

Please sign in to leave a comment.