wernerkrauss / silverstripe-rector

A developer utility for automatically upgrading deprecated code for Silverstripe CMS
MIT License
5 stars 3 forks source link

Rule: change ->sort('Foo','ASC') to array notation #12

Open wernerkrauss opened 11 months ago

wernerkrauss commented 11 months ago

possible variations:

->sort('Foo', 'DESC'): two params, one for field and sort direction ->sort('Foo'): only one param, just field ->sort('Sort ASC, Value ASC'): one long string with plain SQL. Comma separated Field/Sort tuples or just fields