Add rules for ConsoleIo::styles()

This method is getting a split get/set which can be handled by rector.
This commit is contained in:
Mark Story 2019-10-16 19:18:15 -04:00
parent 57332a88e8
commit a9e148905d

View File

@ -61,3 +61,13 @@ services:
withParam:
match_parameter: 'paging'
replace_with: 'withAttribute'
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
Cake\Console\ConsoleIo:
styles:
set: 'setStyle'
get: 'getStyle'
Cake\Console\ConsoleOutput:
styles:
set: 'setStyle'
get: 'getStyle'