It seems like you call parent on a different method (createTransaction() instead of transfer()). Are you sure this is correct? If so, you might want to change this to $this->createTransaction().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.
Unreachable code is most often the result of
return
,die
orexit
statements that have been added for debug purposes.In the above example, the last
return false
will never be executed, because a return statement has already been met in every possible execution path.