PhpStorm provides the following inline refactorings:
The Inline Variable refactoring replaces redundant variable usage with its initializer. This refactoring is opposite to Extract Variable.
The Inline Method refactoring results in placing the method's or function's body into the body of its caller(s). This refactoring is opposite to Extract method. You can opt to:
inline all occurrences of the method, and delete the method,
inline all occurrences of the method, and retain the method,
inline a single occurrence, and retain the method.
Place the caret in the editor at the desired symbol to be inlined.
Do one of the following:
On the main menu or on the context menu, choose Refactor | Inline.
Press Ctrl+Alt+N.
When inlining a variable, confirm the refactoring in the Inline dialog. When inlining a method, specify the inlining options in the Inline Method dialog.