Periodic orbits and non-integrability in a cosmological scalar field