Good intention, but outdated info. This has not been true for almost a decade now. Only very old Li-ion batteries needed a cycling to calibrate sensors. Modern battery controllers are very good at avoiding damage from keeping a charger connected all night long. The phones can now cut current to avoid constant voltage to the battery making overcharging basically impossible.
See here.
This advice still applies for shitty toys and other cheap electronics that come with old-tech rechargeable batteries. But new phones and tablets are safe and don't require this much babysitting anymore.