The refactoring works wrong because it will fail because of Parse error
Before refactoring

After refactoring

The right way to refator

http://sandbox.onlinephpfunctions.com/code/ab96f13ac1676851a0d88615dc54fabcea1a8006 how it works before refactoring
http://sandbox.onlinephpfunctions.com/code/6586bfbb31c134adb6a38f4803a97da2f5e55636 how it doesn't work after refactoring
http://sandbox.onlinephpfunctions.com/code/4f2afbd98798b8867f0950c329e2e736769f8bda how it does work after refactoring
It's easy to understand. I don't know what other info I should put here
That enough info here, thank you @vladyslavstartsev.
For myself: the same applies to the clone operations.
Fixed =)