Fix errors and deprecation warnings

Align the parameters of a method call if they span more than one line.