XD What documents you checking mate?
I'm here rocking thucydides as my primary. Who you got?
Almost every classical historian alive will tell you the greeks fought in semi coherent mobs. The spartans were slightly (and I mean slightly) more organized using music to keep an even pace, which other classical greeks did not do, so when they advanced there was no way for them to tell how to keep pace, meaning parts of the line would bulge. Then they would charge without much consideration of formation, opening all sorts of gaps in their lines, but hoping the shock would carry the day (if it did not, then you get some seriously bloody battles as mobs of hoplites mush together in a rough line and murder each other relatively slowly)
Coherent ranks and files is attested in the hellenic period, which is after the classical period. And after hoplites (as defined as a guy carrying a hoplon, you know, that big ol' shield) when greek armies were mostly using pikes. We don't have a lot of great sources for the classical powerhouses of athens and sparta militarily at this time (and neither power was actually important in the period. Sparta tried twice to rebuild its wider empire and macedon trivially trounced them both times), and the dominant city state of Thebes were burned to the ground by alexander and so we have very little for them too, but we DO have good sources of the macedonians, and how easily they folded the existing city state and ethnos militaries into their own phalangite system.