i agree with you for real code, but here people will copy-paste pieces to build there queries. so on line 170 i think the ->end() would be good. note that the example on 190 has it...