Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

[ExtractMethod] Detect return statements #3

Open
beberlei opened this issue Apr 4, 2013 · 0 comments
Open

[ExtractMethod] Detect return statements #3

beberlei opened this issue Apr 4, 2013 · 0 comments

Comments

@beberlei
Copy link
Contributor

beberlei commented Apr 4, 2013

If the extracted code contains return statement(s), then the newly created method call should be:

return $this->extractedMethod($input);

this can obviously only work if the number of output parameters is 0, otherwise the extracted slice is not valid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant