Skip to content

Instantly share code, notes, and snippets.

@mssimi
Last active February 26, 2018 19:44
Show Gist options
  • Save mssimi/cb59e96c5e8c45f28add422e3b5406f1 to your computer and use it in GitHub Desktop.
Save mssimi/cb59e96c5e8c45f28add422e3b5406f1 to your computer and use it in GitHub Desktop.
Fluent Rector Builder
rector_builder:
something_provider:
matchMethodCallByType: 'Nette\Application\UI\Control'
matchMethodName: 'invalidateControl'
changeMethodNameTo: 'redrawControl'
anything_provider:
matchMethodCallByType: 'Nette\Application\Anything'
matchMethodName: 'getName'
changeMethodNameTo: 'getTitle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment