Tidied up TextStatistics.php (PSR 2, roughly)