Just to remind Alex, the reason that it doesn't complain is that $query->center(#other stuff);is a valid method call; but nothing is being done with the return from the "center" method.
I believe C/C++/Java? programmers would call this a call "in void context".
This is fixed by printing the results of the method call.