Fix phploc metrics calculations